tuandm / laravue

Admin dashboard for enterprise Laravel applications built by VueJS and Element UI https://laravue.dev
https://laravue.dev
MIT License
2.21k stars 655 forks source link

Gives 404 error in login #348

Open akijura opened 2 years ago

akijura commented 2 years ago

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 commented 2 years ago

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