Anti-forgery token issue (MVC 5)

前端 未结 7 1843
长发绾君心
长发绾君心 2020-12-07 09:15

I am having an issue with the anti-forgery token :( I have created my own User class which worked fine but now I am getting an error whenever I go to the /Account/Re

7条回答
  •  攒了一身酷
    2020-12-07 10:13

    Just put this in global.asax.cs

    AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimsIdentity.DefaultNameClaimType;
    

提交回复
热议问题