1
votes

I am getting No 'Access-Control-Allow-Origin' header is present on the requested resource while trying to generate token using graph api in Angular 8 Application.

Is there any alternate way to manage this using microsoft-adal-angular6 npm to allow cors cross origins?

1
Have you tried this? github.com/AzureAD/… - Stanley Gong
Yes, i have tried but while calling Graph API from Angular it throws No 'Access-Control-Allow-Origin' header is present on the requested resource - Harsh Gajjar
please let us know which sample you are referring - Sruthi J
I am using this package in angular application => microsoft-adal-angular6 Authentication is working but while calling Microsoft Graph API for token and getmembergroup using token generated from above package, it throws No 'Access-Control-Allow-Origin' header is present on the requested resource in below API login.microsoftonline.com/XXXXX/oauth2/v2.0/token - Harsh Gajjar
can you please share the code of app configuration and graph call - Sruthi J

1 Answers

1
votes

I think this question also has been answered in this post. Let me know if you have any other questions.