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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / CORS MISSING ALLOW ORI...
Power Automate
Unanswered

CORS MISSING ALLOW ORIGIN error

(0) ShareShare
ReportReport
Posted on by

i am trying to get the access_token dynamically from frontend using react js for the API

"**GET https://login.microsoftonline.com/TenantID/oauth2/v2.0/token**"

by giving body parameters as

client_id:

client_secret:

scope:

grant_type:

redirect_uri:

But i am getting CORS MISSING ALLOW ORIGIN error .
How can i solve it ?

Is there any option to enable cors origin from react js ?

Give me the solution

Categories:
I have the same question (0)
  • Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at

    No, the CORS header (Allow-Origin) would have to be set on the Microsoft server.

    I'm assuming they won't do that for you 😉

  • Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at

    Of course, there are ways to get around CORS, such as using a proxy that doesn't care or launching Chrome like this:

    chrome.exe --user-data-dir="C://chrome-dev-disabled-security" --disable-web-security

    But CORS is a security feature, make sure you know what you're doing.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard