Chris76786777
Chris76786777

Reputation: 739

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'm trying to run a Function from a Logic App. I made the mistake of experimenting with an API definition on a production Function App. I've redeployed the last working commit and restarted the Function app but I still get this error on the Logic Apps side.

How do I get back to where I was?

Upvotes: 2

Views: 3654

Answers (1)

aaronR
aaronR

Reputation: 1567

The way to fix this is to change the CORS settings on your Azure Function to allow all sources with the "*" entry.

See this related post.

Original CORS Settings enter image description here

New CORS Settings enter image description here

Upvotes: 2

Related Questions