AcadeDoc/apps
Corentin aef912f9a4 fix(client): bridge same-origin proxy via Vite + dev token fallback — Patch 021
Cross-origin (5173 vs 4000) blocked the auth cookie from reaching the
bridge — every /database slash command request 401'd silently. Two
changes:

1. vite.config.ts: add /bridge -> http://localhost:4000 proxy with
   path rewrite + /bridge-events -> /api/events for SSE. Same-origin =
   browser sends the auth cookie automatically.
2. bridge-client.ts: resolveBridgeUrl() defaults to /bridge instead
   of absolute http://localhost:4000. Also adds a VITE_BRIDGE_TOKEN env
   fallback for dev (the bridge requires Bearer auth and the Docmost
   session cookie is HttpOnly so JS cannot read it).

Patch 021.
2026-05-08 12:32:33 +02:00
..
client fix(client): bridge same-origin proxy via Vite + dev token fallback — Patch 021 2026-05-08 12:32:33 +02:00
extension-clipper feat(acadenice): add sync blocks for cross-page content sharing — R4.2 2026-05-08 11:40:12 +02:00
server feat(acadedoc): replace EE Settings with open source UI (audit log, API keys, OIDC status) — R4.5 2026-05-08 12:24:00 +02:00