I’m using Rocketchat in development environment and accessing local Rocketchat server from private ip in the browser.
As domains differ I’m facing cors issues.
I have enabled cors for Rest api.
Rest api is working fine but I don’t know how to add cors headers for uploaded files as it needs auth and I’m requesting with ajax(from another domain) to preview the image.
File url: 192.xxx.xxx.xxx/file-upload/m5Z5PTTB9QJQPbzMz/Picture2.png
Error: CORS header ‘Access-Control-Allow-Origin’ missing
Thanks in advance