admin管理员组文章数量:1404341
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
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
Share Improve this question asked Jul 31, 2015 at 23:23 CraigCraig 1,2252 gold badges23 silver badges58 bronze badges1 Answer
Reset to default 0This 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.
本文标签: javascriptError in Chrome only XMLHttpRequest failed to load resourceStack Overflow
版权声明:本文标题:javascript - Error in Chrome only: XMLHttpRequest failed to load resource - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744793900a2625459.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论