laravel fortify sanctum SPA issues on forge

324 Views Asked by At

My setup is working properly locally but apparently I'm getting a 401 issue on laravel forge for my laravel-fortify-sanctum

basically I use laravel fortify for authentication then sanctum to get a token after authentication process.

it works properly on my local setup but in laravel forge it's saying I'm still Unaunthenticated

laravel forge domains api.domain.com frontend.domain.com

SESSION_DRIVER=cookie
SESSION_DOMAIN=.domain.com
SANCTUM_STATEFUL_DOMAINS=*.domain.com


Am I missing something?
0

There are 0 best solutions below