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

mumair's avatar

Chrome TokenMismatchException in VerifyCsrfToken.php line 68

Hi,

I am getting this error for every post request in chrome only but it works fine in edge and firefox as well...Any ideas?

0 likes
5 replies
theFinalArbiter's avatar

Are you on homestead? I remember having these kinds of problems when running on xampp.

mumair's avatar

No i am using sqlite database at the moment for development puspose....Not using wamp or xamp

Ishatanjeeb's avatar

Laravel makes it easy to protect your application from CSRF attacks.I think you forget to add {{ csrf_field() }} on your form.:)

Ishatanjeeb's avatar

Something like bellow

<form method="POST" action="/profile">
    {{ csrf_field() }}
    ...
</form>
mumair's avatar

No i am adding this also...i mentioned that it works fine in firefox but only it happens in chrome

Please or to participate in this conversation.