Azure Blob storage CORS Policy does not applying

Hemant Ashok 15 Reputation points
2025-02-21T08:44:43.8566667+00:00

Hello,

I have set up Azure Blob Storage with a Private access level, and I am able to access the blob files by generating access tokens from my application.

I have also configured CORS, but it's not working as expected.

My goal is to ensure that only my application can access the blob content using the access token and CORS policy.

Could you please assist me with this issue?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,094 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alex Burlachenko 1,190 Reputation points
    2025-02-21T11:02:08.7133333+00:00

    Hey Hemant,

    CORS can be a pain, but let’s keep it simple. If your app is server-side (using tokens), CORS doesn’t apply it’s only for browser requests. If it’s frontend, check your CORS rules in Azure step by step

    first is set allowed origins (your app’s domain)? next allow methods (GET, POST, etc.). and wait a few mins Azure caches CORS settings.

    If it’s still not working, check the browser console for errors.

    You’ve got this! Let me know if you need more help.

    rgds,

    Alex,


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.