简体   繁体   中英

Symfony 5: CSRF token is invalid

I know this has been asked many times before and I have been searching the web for the last hour but I can't find a solution.

What I'm trying to do is update my user data, in this case, my username.

I have profiler installed to check on errors and stuff like that, I haven't even submitted the form to change and I get an error that the token is invalid. I checked the source to see if it was even there and yes it was.

图像
(source: suidgeest.eu )

PS: Images are like this because I need 10 rep.

检查您的 php 会话文件夹是否具有正确的权限,这在我之前发生过,就是这样。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM