Web Development
Bug Report
Logged in on app.example.com but the API on api.example.com saw no session: cookie Domain rules
After splitting our frontend and API onto separate subdomains, users logged in and were then treated as anonymous by every API call. The session cookie was host-only and fetch did not send credentials. How cookie scoping works across subdomains, the CORS settings that go with it, and the trade-offs.