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

Gives 404 error in login #348

Open
akijura opened this issue Jul 25, 2022 · 1 comment
Open

Gives 404 error in login #348

akijura opened this issue Jul 25, 2022 · 1 comment

Comments

@akijura
Copy link

akijura commented Jul 25, 2022

I have cloned project and it run in my localhost without any errors. But I tried to put the project to Docker container in production,it gives error in login page. I entered login and passwords correctly. Please help me with this situation.

GET https://ip:port/sanctum/csrf-cookie 404 (Not Found)

Thank you in advance.

@jalalannan
Copy link

Add your domain inside .env file: SANCTUM_STATEFUL_DOMAINS

for example if your links is: laravelvue.line.com then your SANCTUM_STATEFUL_DOMAINS must be this:

SANCTUM_STATEFUL_DOMAINS=localhost,127.0.0.1,localhost:8000,127.0.0.1:8000,laravelvue.line.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants