Laravel Sanctum for SPAs: Cookie Auth, CSRF, CORS, and Production-Safe Defaults
Table of Contents
1. Real-World Scenarios
2. Scenario 1: Cookie never appears after /sanctum/csrf-cookie
3. Scenario 2: Intermittent 419 CSRF errors behind load balancer
4. Scenario 3: Third-party integration required (optional)
5. Checklist
6. Abou...
prateekshawebdesign.hashnode.dev7 min read