question

MarkGoblin-0400 avatar image
0 Votes"
MarkGoblin-0400 asked SumanthMarigowda-MSFT answered

How to I make use of CORS

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered

@MarkGoblin-0400 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://docs.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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.