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

后端 未结 15 1673
粉色の甜心
粉色の甜心 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 10:58

    Also you can see this error message when your form has a lot of elements.

    This option in php.ini cause of problem

    ; How many GET/POST/COOKIE input variables may be accepted
     max_input_vars = 1000
    

    Problem is that _token field misses PUT (GET) request, so you have to increase value.

    Also, it concerns a big files. Increasing the

    upload_max_filesize
    

    option will solve problem.

提交回复
热议问题