Attempting to run an axios call to get a file results in the following error in console:
"Access to XMLHttpRequest at 'Request Url' from origin 'Origin Url' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."
As seen above, I have set Allowed origin, Allowed headers, and Exposed headers to *. I have also set Allowed methods to GET and Max age to 200 (seconds).
I've setup a .Net Core project which is handling the requests, using Postman I have verified the request is functional. However in my React project due to CORs it is not. Here Are The 2 Requests:
React Request: (Returns Cors Error)
Postman Request: (Successful - 200 Response)
I understand that using * is horrible for security purposes, and I intend to change it once I can confirm basic functionality for the feature I'm trying to implement. That being said how can I setup Azure Blob Storage Cors so I can make axios calls from React to get file data?


