Linked Questions

18 votes
4 answers
12k views

I have a web-app with an AngularJS front-end and a Web Api 2 back-end, and it uses bearer-tokens for authentication. All is well in FireFox & IE, but with Chrome, my initial login request is ...
FancyNancy's user avatar
17 votes
5 answers
15k views

I am setting up a WebAPI endpoint for my API, but am having trouble getting my AngularJS calls to my PostRegister method to work. The webAPI and Angular are on separate sites. On the Startup.cs I ...
Andy T's user avatar
  • 9,931
5 votes
3 answers
7k views

I've created an asp.net web api 2 service with individual account security. I'm trying to call it form AngularJs as per this example: http://www.codeproject.com/Articles/742532/Using-Web-API-...
Alex Smotritsky's user avatar
8 votes
4 answers
28k views

I am using an Angular front end to connect to a WEB API 2 backend. The failing use case is the following. When a user registers, on successful registration, they must be logged into the system and be ...
Greg's user avatar
  • 2,678
4 votes
2 answers
14k views

I am working with RESTful services and find Postman as one of the best plugin to GET, POST and test the API's. I find Basic Auth, No Auth, DIgest Auth, OAuth, AWS in postman. How do I test the ...
Chatra's user avatar
  • 3,169
9 votes
2 answers
11k views

Scenario: I have two ASP.NET web applications hosted separately on Windows Azure and both associated to the same Azure Active Directory tenant: An MVC app with an AngularJS SPA frontend and the adal....
Bryan's user avatar
  • 2,855
8 votes
3 answers
9k views

Basically I'm trying to access my web api which is uploaded on Azure. I've added my CORS attribute to my WebApiConfig class: public static void Register(HttpConfiguration config) { var cors = ...
JensOlsen112's user avatar
  • 1,299
6 votes
1 answer
9k views

I have an ASP.NET Web Api 2.0 project with token authentication and everything done mainly following this article: Token Based Authentication using ASP.NET Web API 2, Owin, and Identity, Bit Of ...
Milen Kovachev's user avatar
5 votes
1 answer
3k views

How do I enable the CORS option in asp.net WebApi? I installed the package Microsoft.AspNet.WebApi.Cors from nuget for CORS support. However, I am getting an error stating that IAppBuilder does not ...
Ali Nafees's user avatar
4 votes
4 answers
2k views

I have a project that has both an API and an Area that contains some web forms. Recently the Token endpoint of the API started throwing CORS errors and I can't figure out why or how to fix it. I've ...
user2900166's user avatar
0 votes
1 answer
3k views

This is driving me nuts and I apologise if it's a duplicate but I've read through all the other WebAPI/CORS questions and can't find any configuration that works. I have a WebAPI 2 project on .NET ...
RNDThoughts's user avatar
  • 1,054
1 vote
1 answer
1k views

All preflight requests from browsers to my Self-Host OWIN WebAPI are not processed by Middleware. If I make OPTIONS request from Postman they are processed. Why is such a behaviour? Request URL:...
Argnist's user avatar
  • 535
3 votes
0 answers
3k views

I am trying to get CORS working in a WebAPI that is self hosted in OWIN. The code I have is public void Configuration(IAppBuilder appBuilder) { var configuration = new ...
Craig's user avatar
  • 36.9k
0 votes
2 answers
2k views

I am getting following error wile doing axios post request. But when I use ajax request there is no issue: request has been blocked by CORS policy: Response to preflight request doesn't pass access ...
Aathira's user avatar
  • 853
0 votes
1 answer
2k views

How can i use the URL Rewrite module together with OWIN middleware? Having read http://www.asp.net/aspnet/overview/owin-and-katana/owin-middleware-in-the-iis-integrated-pipeline it says I should be ...
Thomas T's user avatar
  • 717

15 30 50 per page