Laravel sanctum unauthenticated
Add your domains, for example my API is running on localhost:8000 my client is running on localhost:3000 so my env setting looks like below SANCTUM_STATEFUL_DOMAINS=localhost:8000,localhost:3000 also, add your session domain SESSION_DOMAIN=localhost