Django - CSRF token missing or incorrect

前端 未结 4 2014
失恋的感觉
失恋的感觉 2021-01-04 02:57

I just updated my django to 1.4. But I am getting the following error when I try to submit my login form:

Forbidden (403) CSRF verification failed.

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-04 03:36

    I had similar issue where my app was deployed on HTTPS. I had to change setting flag CSRF_COOKIE_HTTPONLY to false so client server can access csrf cookie.

提交回复
热议问题