Claude's usage/prepaid/overage endpoints require Origin, Referer, and User-Agent headers to pass CORS/auth checks. Without them, bootstrap succeeds (more permissive) but usage returns 403 -> 'Not signed in'. Added claudeAPIRequest(for:) helper that sets all required browser-like headers on every request. Bootstrap, usage, prepaid, overage, and the orgs fallback all go through it.
843 B
843 B
What's new in v1.2.1
Bug fixes
- Fixed "Not signed in" showing incorrectly on launch when the session was already active
- Sign-in state is now detected immediately from stored cookies on startup, before the first data refresh completes
- Fixed login window auto-closing before the user could sign in — the login window now correctly loads the
/loginpage so it only detects auth after the actual sign-in redirect - Fixed "No API key configured" showing after signing out — now correctly shows "Not signed in" with a prompt to sign in
- Added
/api/organizationsas a final fallback for org ID resolution when the bootstrap API response doesn't include it - Fixed usage data not loading after sign-in — API requests now include required browser-like headers (Origin, Referer, User-Agent) that Claude's usage endpoints require