Skip to content
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 #2

Closed
Desoleh opened this issue Aug 14, 2021 · 4 comments
Closed

CSRF Token Mismatch #2

Desoleh opened this issue Aug 14, 2021 · 4 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@Desoleh
Copy link

Desoleh commented Aug 14, 2021

Describe the bug
when i log in with user at seeder, i get an error "Page expired | 419, Probably your session expired.
in debugbar "CSRF Token Mismatch"
Likewise, after trying to register, the result is still an error

To Reproduce
Steps to reproduce the behavior:

  1. Composer install
  2. php artisan key:generate
  3. php artisan migrate --seed
  4. login at admin.localhost:8000/login
  5. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Screenshot_2_login

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser [chrome, firevox]

.env setting
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_DISQUS=
SESSION_DOMAIN=.localhost

@Desoleh Desoleh added bug Something isn't working invalid This doesn't seem right labels Aug 14, 2021
@stanfortonski
Copy link
Owner

Hi! This is probably caused by wrong address. Laravel "is waiting" for http://admin.localhost/login so http://admin.localhost:8000/login is wrong. The most reliable will be the change server configuration. Just change port to 80.

@stanfortonski stanfortonski removed the bug Something isn't working label Aug 14, 2021
@stanfortonski
Copy link
Owner

If that does not work check subdomain (admin.) configuration in the local server.

@Desoleh
Copy link
Author

Desoleh commented Aug 14, 2021

Thanks in advice.
This issue solved when I change localhost to laravel-blog.test (with valet installed).
Thanks....

@stanfortonski
Copy link
Owner

Nice to hear :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants