For more information i am using view caching in local storage
Tokenmismatchexception
Hello, recently i updated 2 files in production and some clients complained they couldn't send appointments (form submitted vie ajax to server). i checked it by myself , filled out form and it was submitted successfully while client keep complaining, so i checked storage/logs and saw to many tokenmissmatchexception. after i had to comment \App\Http\Middleware\VerifyCsrfToken::class in kernel.php in order to stop this. anyone can tall why it happened , some clients could send appointment including me and some of them can't
The problem was that i was caching views, so client had old token generated while server refreshed it. solution was that i send request from client to refresh token once when page loads.
Please or to participate in this conversation.