radio-stream icon indicating copy to clipboard operation
radio-stream copied to clipboard

Add nginx-mod-http-headers-more and Access-Control-Allow-Origin to nginx

Open helpse opened this issue 6 years ago • 1 comments

Hey @vitalybe I believe we need this fix!

The call to OPTIONS http://{SERVER}/radio-stream/api/playlists is returning a 401 (Unauthorized) because of the CORS policy, from the browser.

Please let me know what you think.

helpse avatar Apr 18 '18 03:04 helpse

Hey, thanks for the PR!

  1. Why do you need to call OPTIONS from the browser? The 2 use cases I have now, Desktop app and Android app aren't concerned with CORS.

  2. That's a lot of changes in the Dockerfile... Why all that is needed?

vitalybe avatar Apr 18 '18 07:04 vitalybe