cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Azure API Powerapps connection suddenly not working anymore - Invalid CORS request

Hello.,

 

Without any change to the API connector, my Powerapp is not working anymore:

It comes back with a 403 message

 

Status:  Forbidden (403)

 

Body: Invalid CORS request

 

Does anybody have a possible solution?

 

Is this a Powerapps or Azure API management problem?

(the API itself works fine, outside Powerapps..)

 

thanks

Erik

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @hermans25 ,

Could you please share a bit more the error message within your app?

Do you create a custom connector based on your Azure API within your PowerApps?

Based on the error message that you provided, I think you have faced a 403 forbidden error within the request you sent from your app.

 

Please check if you have sent a proper/valid request from your app (check if you have specified a valid request within your custom connector action). In addition, also please check if you have enough permission to access the URL request you sent from your app.

 

Please consider take a try to re-create a new custom connector based on your Azure API within your PowerApps, then specify a valid requst within the custom connector action, then check if the issue is solved.

More details about customizing a connector within PowerApps, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Community Support
Community Support

Hi @hermans25 ,

Could you please share a bit more the error message within your app?

Do you create a custom connector based on your Azure API within your PowerApps?

Based on the error message that you provided, I think you have faced a 403 forbidden error within the request you sent from your app.

 

Please check if you have sent a proper/valid request from your app (check if you have specified a valid request within your custom connector action). In addition, also please check if you have enough permission to access the URL request you sent from your app.

 

Please consider take a try to re-create a new custom connector based on your Azure API within your PowerApps, then specify a valid requst within the custom connector action, then check if the issue is solved.

More details about customizing a connector within PowerApps, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Dear support team,

 

Indeed I create a custom connector as described in https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api .

 

Already at testing the connector I get the error message "Invalid CORS request".

Althoug we did not change anything on the API side (Spring) , as well in Azure API management, this error suddenly occurred.

Re-creating the custom connector and connections (several times) did not solve the problem.

Since I can test the API with a request directly from the web-browser and since my Powerapps request was formerly also working, I am quite sure it is a "valid request".

 

Hereby the screen shots of the error message.

 

Hopefully, you can help ? did something change in Powerapps itself?

 

thanks

Erik

 

 

I have all permission rights (key) to access the API, and in a webbrowser, all direct links with the API are working fine.

 

PS. strange is that the published version of the Powerapp (in Production) is still working fine.

So it seems something changed on Friday February 22....

Problem has been solved. It seemed an authorization issue on the API side.

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,878)