-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSRF token mismatch. #11
Comments
Hey @menphurk236 I have no idea what could be wrong because i don't use I recommend to run this project with Laravel Homestead or Laravel Valet. Best Regards, |
Hello @menphurk236, I've added the following environment variables with these values: APP_URL=http://localhost:8000/ Best Regards, |
I have fixed this issue by change the browser url to |
I had the same problem, my solution was to add the crsf token to "resources/app/plugins/axios.js"
The token is correctly set in "resources/views/index.blade.php" but not used. After adding this line, the error disappears. |
run command : php artisan serve
my .env config
APP_URL=http://127.0.0.1:8000
SANCTUM_STATEFUL_DOMAINS=127.0.0.1:8000
SESSION_DOMAIN=localhost
The text was updated successfully, but these errors were encountered: