Closed YnievesDotNet closed 3 years ago
Thanks for this project, is amazing.
now i have receive error with csrf...
this set-cookie was blocked because its domain was invalid with regards to de current host url
and when I try login receive that error
CSRF token mismatch.
I has a nextjs url with proxy under the url https://front.domain.me, and the api in https://api.domain.me
I has configured in the .env:
.env
SESSION_DOMAIN=front.domain.me SANCTUM_STATEFUL_DOMAINS=front.domain.me
and in the client\.env.local that:
client\.env.local
NEXT_PUBLIC_API_HOST_URL=https://api.domain.me
Thanks
Yoinier.
SESSION_DOMAIN=.domain.me SANCTUM_STATEFUL_DOMAINS=.domain.me
and now work
Hi there,
Happy to hear you like the project and were able to find a solution.
Thanks for this project, is amazing.
now i have receive error with csrf...
this set-cookie was blocked because its domain was invalid with regards to de current host url
and when I try login receive that error
CSRF token mismatch.
I has a nextjs url with proxy under the url https://front.domain.me, and the api in https://api.domain.me
I has configured in the
.env
:and in the
client\.env.local
that:Thanks
Yoinier.