Azure-Samples / active-directory-dotnet-webapp-wsfederation

A .NET MVC web application that uses WS-Federation to sign-in users from a single Azure Active Directory tenant, using the ASP.Net WS-Federation OWIN middleware.
MIT License
64 stars 52 forks source link

No 'Access-Control-Allow-Origin' header is present on the requested resource #7

Open sameer-kumar opened 7 years ago

sameer-kumar commented 7 years ago

In the application I am trying to add an WebApi controller and invoking a GET request from view via ajax. But I get the following error when I am not signed in:

XMLHttpRequest cannot load https://login.microsoftonline.com/85c96496-fbc6-4bf3-bfcc-fb51ca874527/wsfe…UIWNgv-EANzWADAQPCOqF--3c7KGt6G21ucvLkce_wMcwVguKz62ioyGPxQg&wa=wsignin1.0. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://localhost:xxx' is therefore not allowed access.

What am I missing here?

praveenrengarajan commented 7 years ago

@sameer-kumar have you found the solution ? facing same issue