Answer the question
In order to leave comments, you need to log in
Allow CORS Docker MPD stream?
Hello!
I am streaming audio. On the server (a.domain:8000), mpd is in docker. On the site (b.domain) the player broadcasts and there is a JS script that pulls out id3 tags.
The problem is that I can't "knock" the server from another domain due to the limitation: Access-Control-Allow-Origin. I can't figure out how to take it off.
Made
<location /stream>
Header always set Access-Control-Allow-Origin: "*"
ProxyPass http://127.0.0.1:8000
Refused to get unsafe header "Content-Length"
XMLHttpRequest cannot load loc/stream. Response for preflight has invalid HTTP status code 502
Header always set Access-Control-Expose-Headers: "Content-Length"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question