web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / CORS Policy Issue whil...
Power Pages
Unanswered

CORS Policy Issue while accessing third party API

(0) ShareShare
ReportReport
Posted on by 29

Hi , 

 

I am trying ajax call to third party API in Power apps portal . while making call to that getting below error 

 

"Access to XMLHttpRequest at 'https://api.test.com/' from origin 'https://xyz.powerappsportals.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header has a value 'https://developers.test.com' that is not equal to the supplied origin."

 

Can anyone please help me with this issue?

 

thanks! 

 



Categories:
I have the same question (0)
  • justinburch Profile Picture
    Microsoft Employee on at

    Hi @PoojaD,

     

    The third party app would need to allow your Portal's origin on their end - there isn't anything you can do other than reach out and request it. This is a security measure to make sure that APIs/websites aren't abused.

  • gman0104 Profile Picture
    29 on at

    Did you manage to get this issue resolved ?. Im facing the same issue

     

    Thanks

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @gman 

     

    As mentioned by @justinburch  you need to contact the API provider to add powerapps portal to the CORS allowlist

     

    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    @gman  first you need to decipher if the message is because the site you are calling is blocking your call because it has not enabled CORS or if it is the Portal that is doing the blocking.  If it is the other site then you need to talk to them to see if they will enable CORS.

     

    If it is the Portal side of things there are now some Site Settings that can be set, see the following link:

    https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/cors-support

     

  • gman0104 Profile Picture
    29 on at

    The services that i am calling appears to be the issue since i am happy with the portal site settings

     

    Thanks G

  • gman0104 Profile Picture
    29 on at

    Thanks for your advice

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Hammed Profile Picture

Hammed 22

#2
Lucas001 Profile Picture

Lucas001 21 Super User 2026 Season 1

#3
DP_Prabh Profile Picture

DP_Prabh 19

Last 30 days Overall leaderboard