Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

testy's avatar

TokenMismatchException in VerifyCsrfToken.php line 46

I have upgraded my 2 weeks old L5 code with the newest changes.

But, i became this error everytime:

php TokenMismatchException in VerifyCsrfToken.php line 46php

I make a ajax request. The _token input is correct...have i missed anything?

0 likes
4 replies
testy's avatar

Oh man, it was my fault, i changed the directory name of my app, and do not update my .htaccess

Please or to participate in this conversation.