Anti-forgery token issue (MVC 5)

前端 未结 7 1846
长发绾君心
长发绾君心 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:02

    Try setting (in global.cs):

    AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimTypes.NameIdentifier;
    

提交回复
热议问题