在 Azure Functions 中配置 Access-Control-Allow-Headers
Configuring Access-Control-Allow-Headers in Azure Functions
我有一个通过 Azure Functions 构建的 API,在除 Safari 之外的所有浏览器中通过 JavaScript 调用时都可以使用。从 another question 看来,我需要在 CORS 配置中允许 header 或 "Origin"。我在 Azure 门户中看到的唯一配置是允许来源。如何配置允许的 headers?
如果有关系,这是通过VS2017 Azure功能工具开发和发布的。
How do I configure allowed headers?
看来我们也可以使用 Azure 门户来做到这一点。更多详细信息请参考截图。
To allow all, use "*" and remove all other origins from the list. Slashes are not allowed as part of domain or after TLD.
允许 headers 在 Azure Functions 中不可配置,因为它允许所有。
我有一个通过 Azure Functions 构建的 API,在除 Safari 之外的所有浏览器中通过 JavaScript 调用时都可以使用。从 another question 看来,我需要在 CORS 配置中允许 header 或 "Origin"。我在 Azure 门户中看到的唯一配置是允许来源。如何配置允许的 headers?
如果有关系,这是通过VS2017 Azure功能工具开发和发布的。
How do I configure allowed headers?
看来我们也可以使用 Azure 门户来做到这一点。更多详细信息请参考截图。
To allow all, use "*" and remove all other origins from the list. Slashes are not allowed as part of domain or after TLD.
允许 headers 在 Azure Functions 中不可配置,因为它允许所有。