Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Consumming odata from angular [cors origin error]

(0) ShareShare
ReportReport
Posted on by

I'm trying to use a published odatav4 endpoint from an angular app and getting 

CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 

But I can access the endpoint via browser. Who can I configure nav to accept request from my app running on http://localhost:4200.

Im using Dynamics nav Business Central 13.0 2018

pastedimage1597333849520v3.png

pastedimage1597333204711v1.png

pastedimage1597333248377v2.png

Thanks in advance

  • raelhefn Profile Picture
    raelhefn on at
    RE: Consumming odata from angular [cors origin error]

    Please refer to Using AngularJS to Build Dynamic Web Pages with Dynamics 365 Business Central Data  : www.cdata.com/.../d365businesscentral-odata-angularjs.rst

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans