MVC + Ajax call for controller will lose authentication

I saw similar problems in some posts, but none of the answers helped. My MVC application has several AJAX / JSON response methods in one controller, and the calls get to the destination, but it doesnโ€™t work in IE or Chrome, and it works in mozilla, but Firebug returns a very strange set of 3 attempts (all return 401 ), but the latter really works!

My application has windows authentication, how can I extend this to my Ajax methods? the rest of the application is working fine. I tried to get around 401 by returning 200 Status from Global.asax (Application_EndRequest), but continues to do the same. Basically all of my Ajax methods have the same problem.

Here is an image from my firebug console.

+3
source share

Source: https://habr.com/ru/post/1792240/


All Articles