CORS Policy in Player HLS

Hi
There is a problem of Cross-Origin Resource Sharing ( CORS ) with the player HLS.
Player don’t work with the ‘Access-Control-Allow-Origin’ header and xhrSetup 'withCredentials = true
Jean-Luc

Hi,

Thanks for telling us about this issue. There was a cache problem on the CDN. All of your videos are now available.

Thank you.

Best regards.

Hi Anthony,

Now my player stop working and in browser console I saw messages like this:

Access to XMLHttpRequest at ‘https://cdn.api.video/vod/viIgzp652MImHU8PzvufXJJ/hls/240/aes.key’ from origin ‘MyOrigin’ has been blocked by CORS policy: The value of the ‘Access-Control-Allow-Origin’ header in the response must not be the wildcard ‘*’ when the request’s credentials mode is ‘include’. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

What can I do with it? Re-upload my video or smth else?

Hi Zuev,

I fixed some headers controlling the file caching rules of the CDN to fix CORS issue. Now CDN cache file and adapt his response upon the Origin request header.

You should no longer encounter this kind of error in the future. Do not hesitate to come back to us if the problem persists.

Have a good day!

Best regards.