cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hermans25
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
v-xida-msft
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

5 REPLIES 5
v-xida-msft
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.

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.

What authorization issues? 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,813)