on-internet
← Community

Access to XMLHttpRequest at https://login.microsoftonline.com has been blocked by CORS policy

Stack Overflow ·

I have an ASP.NET web app which calls an API to get some data from an ASP.NET Core web app of mine. This worked fine until I added Microsoft sign-in to the ASP.NET Core app. I followed this Microsoft Documentation exactly step-by-step to add the sign-in. The sign-in works perfectly; however, this has caused an issue with the API. Now when the API call is made, I get this error in the console (with the sensitive info replaced by {...}): Access to XMLHttpRequest at 'https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/authorize?client_id={client_id}&redirect_uri= {redirect_uri}&response_typ

Comments

Sign in or sign up to comment and upvote.

No comments yet.