Microsoft CDN request fails with CORS error even though same request to underlying blob works fine

David Cooper 0 Reputation points
2025-06-05T09:38:41.94+00:00

I have an Azure storage blob that I use for video streaming. It has CORS settings in place. All works fine if point Shaka Player at a file URL - i.e. the video streams nicely.

However, I have also set up Microsoft.CDN to front end the container. If I browse to a blob file using a browser (using the azureedge.net domain name) the file is found and download offered.

However, when shaka player (video player) tries access the file via the same url, I get a MissingAllowOriginHeader CORS error reported .

The CORS settings haven't been changed since the CDN was setup up.

I have flushed browser cache.

I don't know what to do next to get the video file to play.

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
857 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Venkat V 2,545 Reputation points Microsoft External Staff Moderator
    2025-06-10T05:50:32.2066667+00:00

    Hi @David Cooper,

    As per your rule set screenshot, the header value is set to "Access-Control-Allow-Origin", which is just the name of the header itself, not a valid origin.

    User's image

    The Access-Control-Allow-Origin header must have the domain name (like https://yoreflix.online) as its value, not the header name itself. Update the header value to your actual origin URL, e.g. https://yoreflix.online, instead of "Access-Control-Allow-Origin".

    Below is the sample CORS setting
    User's image

    Once you update the ruleset configuration, make sure to purge the cached content on the Front Door endpoint to ensure that future responses include the updated Access-Control-Allow-Originheader.

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    I really appreciate your feedback. It’s valuable to us. Please click Accept Answer on this post to assist other community members facing similar issues in finding the correct solution.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.