-1

I use wep api + angular js for intranet application.I want to activite windows authentication.It is work for internet explorer well.But when I try it chrome browser only get methods working.I dont want to disable Chrome launcher: --disable-web-security.Is there a work around?

AngularJS not detecting Access-Control-Allow-Origin header?

Community
  • 1
  • 1
Bilgehan
  • 1,135
  • 1
  • 14
  • 41

1 Answers1

0

Chrome sending post/put request as options format.

Authorization headers with OPTIONS request, so on server side if you enable Windows integrated authentication, it does reject the OPTIONS request.So you have to open windows authentication and anonymous authentication both if you open only windows authentication you get this error.

If you use IE it sends request with post or put format but chrome send it to options method format for that reason you get error in chrome.

You can check for details in these topics

401 response for CORS request in IIS with Windows Auth enabled

Can't set a header using Cors and Ajax

Community
  • 1
  • 1
Bilgehan
  • 1,135
  • 1
  • 14
  • 41