'Laravel application on Heroku, 419 page expired when try to login/register

I set up my Laravel 8+ application on Heroku.com. Almost everything works perfectly, but when I try to register/login I got the "419 | Page Expired" error. I am new in Laravel, but here is some information, which I think is important:

  • @csrf is in all the forms, and the head contains <meta name="csrf-token" content="{{ csrf_token() }}">
  • I tried php artisan cache:clear command, and I tried register/login in another browsers as well
  • other forms work perfectly
  • in my localhost register/login works
  • here is the settings what I use in the Heroku site:

heroku settings

As I said I am new in Laravel, and I have no idea what did I wrong. I sent a ticket to Heroku, which is in progress, but I do not think so, that they can help me.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source