Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

New Post: Authentication CORS POST AngularJS ASP.NET Web API

$
0
0
I finally got it working.

There is a Trick to it. You need to configure the Cors before the UseBearerToken

e.g.
        public void Configuration(IAppBuilder app)
        {
            // This must come first to intercept the /Token requests
            app.UseCors(corsOptions);

            app.UseOAuthBearerTokens(OAuthOptions);
        }

Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>