0

I am running a WebApi and a WebClient application under IIS express (localhost) and receive this error only when I run them under Chrome. It works fine under IE.

At this point I am attempting to just log in a user and I receive two error messages that I am not sure what they mean -

Failed to load resource: http://localhost:59822/api/accounts/login the server responded with a status of 401 (Unauthorized)

XMLHttpRequest cannot load http://localhost:59822/api/accounts/login. Invalid HTTP status code 401

Craig
  • 1,171
  • 1
  • 18
  • 51

1 Answers1

0

This most likely happens due to the security settings in Chrome.

By default the same-origin policy is rigorously enforced.

Here is how to disable it in Chrome.

Community
  • 1
  • 1
reker-
  • 26
  • 3