cflmy and Cursor
86b183e2d7
fix(web): harden WebSocket and net host boundaries
...
- WS handshake: same-origin CheckOrigin instead of allow-all
- route_ws require_auth/需要登录: broadcast/room need a session by default,
explicit opt-out for public feeds; unauthenticated handshakes get 401
- WS limits: 1 MiB per message, 256 replies per connect; transport errors
return {ok:false, error} instead of an empty success; empty rooms GC'd
- net host: enforce the 8 MiB response cap while reading (incl. error and
SSE error paths) so a peer cannot exhaust memory
- url_encode: %20 for space (URL segment semantics, not form +)
- docs: sync 网页 (route_ws 需要登录, connect caps) and CHANGELOG
- tests: gold expectations, live fixture opt-out, hub GC, ws auth gate
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 15:14:35 +08:00
..
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-08-13 10:03:21 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-18 11:30:33 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-17 21:00:10 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-18 10:17:39 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-16 17:34:49 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-17 20:54:02 +08:00
2026-09-17 20:54:02 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-13 23:43:44 +08:00
2026-09-17 20:58:21 +08:00
2026-09-13 23:43:44 +08:00
2026-09-17 20:54:02 +08:00
2026-09-13 23:43:44 +08:00
2026-09-14 12:54:38 +08:00
2026-09-14 12:54:38 +08:00
2026-09-13 23:43:44 +08:00
2026-09-22 15:14:35 +08:00
2026-09-14 12:54:38 +08:00
2026-09-17 20:54:02 +08:00
2026-09-13 23:43:44 +08:00