How to I make use of CORS

Mark Goblin 121 Reputation points
2021-08-24T10:41:57.937+00:00

Hi,

We have our webapps running in Azure WEU region and we would like to leverage the CORS within Azure. How to setup this for other Webapps to securely access the contents from the Azure Storage account. Please suggest. No MS articles please as I was unable to understand in a better way.

Probably the steps/guidelines with some benefits would help us out.

Ciao

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,279 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 47,286 Reputation points Microsoft Employee
    2021-08-25T08:27:00.653+00:00

    @Mark Goblin Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    CORS is an HTTP feature that enables a web application running under one domain to access resources in another domain. Web browsers implement a security restriction known as same-origin policy that prevents a web page from calling APIs in a different domain; CORS provides a secure way to allow one domain (the origin domain) to call APIs in another domain. See the CORS specification for details on CORS.

    https://learn.microsoft.com/en-us/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services

    Learn how to access Azure Storage for a web app (not a signed-in user) running on Azure App Service by using managed identities.

    Hope this helps!
    Kindly let us know if the above helps or you need further assistance on this issue.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.