cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

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
Highlighted
Community Support
Community Support

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

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

Highlighted
Frequent Visitor

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

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.

 

Highlighted
Frequent Visitor

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

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....

Highlighted
Frequent Visitor

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

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

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,980)