amrnn90 / breeze-nuxt

An application / authentication starter kit frontend in Nuxt3 for Laravel Breeze.
MIT License
198 stars 33 forks source link

Login error on production machine, cors works but I get the error message | "CSRF token mismatch." #29

Closed mydidefix closed 8 months ago

mydidefix commented 8 months ago

Great starter kit but on production server I get an error when logging in. Login is not possible. Database and user is available. Login error on production machine, cors works but I get the error

Local with host: localhost:3000 and localhost:8000 everything local works great. On the production server I have different hostnames but the cors problem is solved. Everything works but I can't log in. Thanks for the help. With kind regards Dieter

   message "CSRF token mismatch."
message "CSRF token mismatch."
exception "Symfony\Component\HttpKernel\Exception\HttpException"
file "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php"
line 396

mydidefix commented 8 months ago

Close this question because the problem generally occurs when sending a post query on the production server with e.g. myexample.com domain I will ask another question with my test.