Stop sending target cookies from the HTTP service #7

Merged
raucao merged 1 commits from bugfix/openrouter into master 2026-11-16 08:25:55 +00:00
1 Commits
Author SHA1 Message Date
raucao fc417b20e7 Stop sending target cookies from the HTTP service
Extension pages with host permissions are treated as same-origin, so the
target origin's cookies rode along on every request. OpenRouter's
Clerk-protected analytics endpoint then tried to read the management key in
the Authorization header as a session JWT and answered 403, breaking the
spend total on the dashboard.

Default the shared fetch to credentials "omit" (still overridable per call),
and surface OpenRouter's own error message for failed requests instead of a
generic status summary.
2026-11-16 12:22:55 +04:00