[英]How to create Azure Function App + Swagger to be used by Logic Apps
I have an Azure Function App in.Net Core 3.1 that implements Swagger.我有一个 Azure Function App in.Net Core 3.1 实现了 Swagger。 The Swagger page works as intended.
Swagger 页面按预期工作。 When I try to create a Logic App that uses the HTTP + Swagger step, it asks for the Swagger Enpoint Url .
当我尝试创建一个使用HTTP + Swagger步骤的逻辑应用程序时,它会询问Swagger Enpoint Z022A3A357ED712FB59ADFBCC277 So far any entries generate error:
到目前为止,任何条目都会产生错误:
Failed to fetch swagger with error message: Failed to fetch. Ensure you have CORS enabled on the endpoint and are calling a valid HTTPS endpoint.
I have tried the following urls:我尝试了以下网址:
I have enabled CORS in the function app, but I do not know what to use for Allowed Origins .我已经在 function 应用程序中启用了 CORS ,但我不知道该使用什么Allowed Origins 。 Docs said to use '*', but that results in:
文档说使用'*',但这会导致:
The Access-Control-Allow-Credentials response header is not compatible with wildcard origin.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.