Skip to content

DevOps Yoz CORS configuration file for azure functions

Yozelin edited this page Mar 12, 2020 · 1 revision

Sprint 4- CORS Configurations on all functions

Purpose: Cross-Origin Resource Sharing (CORS) is a mechanism to secure the cross-origin request and data transfer between the browser and the server. By default, Azure Functions do not allow all the cross-origin requests, which means if you call the Azure Function API from another domain, it will block the request. To allow other domains to access the function, we need to register those domains in allowed origins entry in the Azure Function.

Step 1:

Step 2:

To configure CORS locally:

Clone this wiki locally