Since I moved a Laravel 5.4 project to AWS, most of the Ajax request is throwing an error TokenMismatchException in VerifyCsrfToken.php line 68
. I don't know what else I can do to fix it. Another info that could be important is that I am using a load balancer between 2 servers.
In all request, I send the X-CSRF-TOKEN on the header and the _token at the form data.
Sometimes the request works but sometimes don't.
Thanks
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2sRQ0z7
via IFTTT
Aucun commentaire:
Enregistrer un commentaire