fix: add browser headers to all API requests to resolve 403 on usage endpoint
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.
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.2.1-beta.5</string>
|
||||
<string>1.2.1-beta.6</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>53</string>
|
||||
<string>54</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>13.0</string>
|
||||
<key>LSUIElement</key>
|
||||
|
||||
Reference in New Issue
Block a user