Access-Control-Allow-Origin with HLS Streaming and JS Video
I am using videoJs to play some HLS streams and videos. It works fine on phones, tablets and Safari, but I'm having problems with chrome and Firefox.
No "Access-Control-Allow-Origin" header is present on the requested resource. Therefore, "Start xxxxxxx" is not allowed.
OR
The "Access-Control-Allow-Origin" header contains multiple "*, *" values, but only one is allowed. Therefore, "Start xxxxxxx" is not allowed.
I tried using Ben Alman PHP proxy ( http://benalman.com/projects/php-simple-proxy/ ) to get the M3U8 file with no success.
Also, I don't have access to the server that hosts the file, so I can't change the Access-Control header.
I'm not a seasoned web developer, so if anyone could help it would be awesome. Many thanks.
source to share
Try to check if your server has CORS enabled. As long as you know the server's public IP, you can check it. http://client.cors-api.appspot.com/client
Then what do you use to publish your videos / live streams. For example, for wowza to work with videojs, you need to install cors on wowza and not on the web server.
source to share