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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Access D365FO Odata Entities or Custom services using java script, react application

(0) ShareShare
ReportReport
Posted on by 7
I have created 2 applications one in C# and another in react to access D365FO data entities using OAuth2.0 authorization code + PKCE approach for authentication. I am able to access OData entities with application created using C#. But when I use react application to connect with F&O OData entities. I receive CORS error. Note - I am able to access the entities using postman. When I was looking out information on the yammer posts , I came across this post , There is no proper solution provided for this yammer post as well. I would like to know if anyone has tried accessing D365FO data entities with react application , is it supported and do we have solution for CORS error.
I have the same question (0)
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    Access D365FO Odata Entities or Custom services using java script, react application
    Hi,
    Not sure why this is happening, can you provide more information (e.g. request information, etc.) to help us better resolve the issue? Here's how you can try to fix it:
    • Make sure the F&O server is configured to allow requests from the domain where your React app is hosted. This may require you to configure the FO server.
    • Set up a proxy server to forward requests from your React app to Dynamics 365 F&O. This actually bypasses the restrictions of CORS, because there is no cross-domain problem between servers.
    • Implement middleware, which should allow requests from your React app's domain.
    Best regards,
    Kevin

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 696 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 569

#3
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans