开发者

MVC + Ajax call to Controller Loses Authentication

开发者 https://www.devze.com 2023-02-11 02:58 出处:网络
I\'ve seen similar issues in some posts but none of the answers have helped yet. My MVC app has a few AJAX/JSON response methods in one controller, and the calls get to destination but it doesn\'t wor

I've seen similar issues in some posts but none of the answers have helped yet. My MVC app has a few AJAX/JSON response methods in one controller, and the calls get to destination but it doesn't work in IE or Chrome, and in mozilla it does, but Firebug returns a very strange set of 3 attempts (all return 401 error) but the last one does actually work!

My App has windows authentication, how can I extend this to my Ajax methods? the rest of the app works fine. I've tried bypassing the 401 by returning 200 开发者_如何学JAVAStatus from Global.asax (Application_EndRequest) but continues to do the same. Basically all of my Ajax methods have the same problem.

Here's an image from my firebug console.

0

精彩评论

暂无评论...
验证码 换一张
取 消