Linked Questions
22 questions linked to/from How to make CORS Authentication in WebAPI 2?
18
votes
4
answers
12k
views
Web Api 2 Preflight CORS request for Bearer Token
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 ...
17
votes
5
answers
15k
views
405 Method Not Allowed on WebAPI2 (OWIN)
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 ...
5
votes
3
answers
7k
views
asp.net web api 2 CORS and authentication authorization configuration
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-...
8
votes
4
answers
28k
views
CORS error - No 'Access-Control-Allow-Origin' header is present on the requested resource
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 ...
4
votes
2
answers
14k
views
Authorize Attribute Authentication with Postman in Web Api
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 ...
9
votes
2
answers
11k
views
CORS preflight request responds with 302 redirect in Azure hosted Web API
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....
8
votes
3
answers
9k
views
Angular -> Web Api 2: "No 'Access-Control-Allow-Origin' header"
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 = ...
6
votes
1
answer
9k
views
What does Microsoft.Owin.Cors middleware do when used with ASP.NET Web Api 2.0?
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 ...
5
votes
1
answer
3k
views
how to enable cors options in asp.net web apis.?
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 ...
4
votes
4
answers
2k
views
Enable CORS for ASP API Token request
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 ...
0
votes
1
answer
3k
views
Unable to enable CORS in WebAPI 2
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 ...
1
vote
1
answer
1k
views
OWIN preflight requests are not processed
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:...
3
votes
0
answers
3k
views
Enable CORS in OWIN Self Hosted WebApi
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 ...
0
votes
2
answers
2k
views
Axios post request failing due to CORS but the same request using ajax is getting no issues
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 ...
0
votes
1
answer
2k
views
URL Rewrite Module (IIS) not working with OWIN Middleware hosted on IIS
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 ...