I'm currently facing a CORS (Cross-Origin Resource Sharing) issue with my Azure Function App, which is running on a Flex Consumption host model. It was developed locally and deployed to a Azure. I'm encountering the following error when trying to call the function from the protal:
HTTP response code: 0 Unknown HTTP error HTTP response content: Error: {"message":"Failed to fetch","stack":"TypeError: Failed to fetch\n at https://portal.azure.com/Content/Dynamic/qTMV9j3qzPmv.js:227:24350","isError":true}
Here are the steps I've taken so far:
- Enabled CORS in Azure Portal in both Azure Function App and Azure Storage Account (Blob and File service - GET,POST,PUT allowed methods)
- Verified the settings in the "Configuration" section under "Settings" in the Azure portal
- Tried Incognito Mode




Access restrictionsenabled in Azure function App?