gpt4 book ai didi

azure - CORS 设置未应用于 Azure Function?

转载 作者:行者123 更新时间:2023-12-02 23:00:28 27 4
gpt4 key购买 nike

在测试我的 Azure 函数的 API 定义(在门户内)时,我收到此 CORS 错误:

This is a cross-origin call. Make sure the server at ***.azurewebsites.net accepts POST requests from functions.azure.com. Learn more

我确认这在功能设置中被列为 CORS 允许的来源:

https://functions.azure.com

enter image description here我错过了什么吗?

最佳答案

我无法在我这边重现这个。

我将以下内容添加到允许的来源:

enter image description here

Azure 门户中的输出:

enter image description here

我还通过 jQuery 向浏览器中的函数发出 POST 请求来测试它:

enter image description here

如果您希望我们深入解决此问题,您可能需要提供重现问题的详细步骤。

关于azure - CORS 设置未应用于 Azure Function?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48819718/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com