The CSRF token is invalid. Please try to resubmit the form

后端 未结 15 1608
粉色の甜心
粉色の甜心 2020-11-28 10:38

I\'m getting this error message every time I try to submit the form:

The CSRF token is invalid. Please try to resubmit the form

15条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 11:12

    You need to remember that CSRF token is stored in the session, so this problem can also occur due to invalid session handling. If you're working on the localhost, check e.g. if session cookie domain is set correctly (in PHP it should be empty when on localhost).

提交回复
热议问题