Intermittent 403 response from django.contrib.auth.views.login()

前端 未结 1 1561
陌清茗
陌清茗 2021-01-28 12:27

Using django.contrib.auth.views.login() to process user logins I\'m seeing 403 responses in a production environment. A second attempt to login succeeds after an initial 403 (wh

相关标签:
1条回答
  • 2021-01-28 13:08

    The CSRF token is rotated after login.

    If you open the login page in one tab, login using a second tab, then you'll get a CSRF error if you submit the form on the original tab.

    0 讨论(0)
提交回复
热议问题