Symfony 5: CSRF token is invalid

  csrf, csrf-token, php, symfony

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.


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

Source: Symfony Questions