Open LeonBuchner opened 1 year ago
@theimerj any idea?
@LeonBuchner on our projects we use it just like this:
SESSION_DOMAIN=.domain.com
SANCTUM_STATEFUL_DOMAINS=.domain.com
Also please double check that you set up everything correctly following the docs: https://laravel.com/docs/10.x/sanctum#installation
Hey, everything is working on localhost but as soon as I deploy my API and my Client to production it will throw the following error:
419 CSRF token mismatch
My Urls:
Client (NuxtJS): crm.domain.de API: api.domain.de
My nuxt.config.ts
My .env file:
FRONTEND_URL=https://crm.domain.de
SESSION_DOMAIN=crm.domain.de,api.domain.de
SANCTUM_STATEFUL_DOMAINS=crm.domain.de,api.domain.de
Any ideas how to fix it?