tuandm/laravue

Gives 404 error in login

akijura opened this issue · 1 comments

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.

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