The anti-forgery cookie token and form field token do not match in MVC 4

后端 未结 6 1159
青春惊慌失措
青春惊慌失措 2020-12-02 17:11

I\'m using the default login module in ASP.NET MVC 4. I did not change any code in the default application and i hosted it on a shared server.

After i logged in usin

6条回答
  •  独厮守ぢ
    2020-12-02 17:34

    For me, this was caused by submitting a form using a button tag. Changing this to an input submit tag resolves the issue.

提交回复
热议问题