MVC ValidateAntiForgeryToken multi-tabs problem

前端 未结 3 795
再見小時候
再見小時候 2021-02-10 05:56

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:36

    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!

提交回复
热议问题