Search code examples
laravelcsrflaravel-7

Laravel 7 419 Page Expired in POST methods


I've upload a Laravel 7 project on cpanel. All post methods give a 419 - page expired error, but it works fine in localhost.

I've set all @csrfs exactly on the forms. I've set session domain in env file. But it still doesn't work.

Instead, it returns:

TokenMismatchException in VerifyCsrfToken.php line 53

Solution

  • I solved this problem with migrating website from http to https