When I call a Power Automate Flow with a HTTP trigger from Postman, it works successfully. However, when I call the flow from Azure Functions using a POST API call, it results in the following error:
Access to XMLHttpRequest at 'https://prod-XXX.westeurope.logic.azure.com/workflows/XXX/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%252Ftriggers%252Fmanual%252Frun&sv=1.0&sig=XXX' from origin 'http://localhost:7071' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
How do I resolve this issue? Do I have to set the 'Access-Control-Allow-Origin' header to localhost:7071? If so, how do I do it in Power Automate?

Report
All responses (
Answers (