MVC ValidateAntiForgeryToken multi-tabs problem

前端 未结 3 1249
我在风中等你
我在风中等你 2021-02-10 06:01

We\'d been getting \"A required anti-forgery token was not supplied or was invalid.\" errors, and on some further investigation, I\'ve managed to recreate the problem in its sim

3条回答
  •  长情又很酷
    2021-02-10 06:24

    The real answer to this problem is simply that you shouldn't use an anti-forgery token on login forms!

    It's pointless to "forge" being a user on a login form - they aren't logged in!

提交回复
热议问题