fix(webview): stop forwarding the session cookie on the websocket leg

The WebSocket leg sent the browser's whole Cookie header to a trusted dashboard, including Codeman's own codeman_session, which the dashboard could then replay against the API. Filter it through filterCookieHeader like the HTTP leg, and omit the header when nothing remains.
This commit is contained in:
ArizeSky committed 2026-11-16 16:46:10 +08:00
1 parent e99b42c387
commit 677e393fc3
3 files changed
+97 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"aicodeman": patch
---
The WebSocket leg of a trusted web tab no longer forwards Codeman's own `codeman_session` cookie upstream, which the HTTP leg already stripped.