Configure CORS for Azure Functions Local Host
问题 I'm testing an Azure Functions app locally with the Azure Functions CLI tooling. Is there any way I can configure CORS settings for the local host? 回答1: You can start the host like this func host start --cors * You can also be more specific and provide a comma delimited list of allowed urls More here: https://github.com/Azure/azure-webjobs-sdk-script/issues/1012 回答2: You can configure CORS in the local settings file local.settings.json : { "Values": { }, "Host": { "CORS": "*" } } Settings in