Open bacink opened 1 year ago
Hi @bacink,
have you put your frontend and backend url into the SESSION_DOMAINS
and SANCTUM_STATEFUL_DOMAINS
in the laravel .env
file?
it should look something like this:
SESSION_DOMAINS=localhost,localhost:8000,localhost:3000,127.0.0.1,127.0.0.1:8000,::1
SANCTUM_STATEFUL_DOMAINS=localhost,localhost:8000,localhost:3000,127.0.0.1,127.0.0.1:8000,::1
In your case just add api.layanan.test,client.layanan.test,
before the ::1 and it should probably work.
Hope it helps!
thank a lot, its works
hy, thank u for your great jobs, iam pretty sure folowing intruction in readme file, but iam getting blocked cors i try'd edit .env in laravel, like SANCTUM_STATEFUL_DOMAINS but it still won't work, i use laravel 9 and nuxtjs 3 cookies based authentication