Authentication failed during call webmethod from jquery.ajx with AspNet.FriendlyUrls and AspNet.Identity

前端 未结 2 1720
眼角桃花
眼角桃花 2020-12-03 21:42

If I call webmethod from jQuery.Ajax with installed Nuget packages Microsoft.AspNet.FriendlyUrls v 1.0.2 and Microsoft.AspNet.Identity v.1.0.0., then I get the data object,

2条回答
  •  爱一瞬间的悲伤
    2020-12-03 22:18

    In your App_Start folder, within your RouteConfig....

    Comment out the following line or change its RedirectMode:

    //settings.AutoRedirectMode = RedirectMode.Permanent;
    

提交回复
热议问题