Nova returns 419 CSRF token mismatch error when loggin in, I solved it #6635
Unanswered
supgeek-rod
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I installed nova using an initial Laravel 11 installation and when I log in I get a 419 CSRF token mismatch error.
This is not just the first time, but this problem has also occurred in multiple laravel11 projects using nova recently. But some projects do not have this problem. This confuses me.
I encountered it again today, and I spent 3 hours to solve it.
When
DB_CONNECTION=sqlite
, 419 CSRF token mismatch will be encounteredWhen
DB_CONNECTION=mysql
, login is successfulI don't understand why, but I hope this discovery will help everyone.
The above is in the WSL nginx php-fpm environment.
If use
php artisan serve
everything works fine.Beta Was this translation helpful? Give feedback.
All reactions