mirror of
https://github.com/openai/codex.git
synced 2026-04-30 19:32:04 +03:00
app-server: reject websocket requests with Origin headers (#14995)
Reject websocket requests that carry an `Origin` header
This commit is contained in:
@@ -29,7 +29,8 @@ Supported transports:
|
||||
When running with `--listen ws://IP:PORT`, the same listener also serves basic HTTP health probes:
|
||||
|
||||
- `GET /readyz` returns `200 OK` once the listener is accepting new connections.
|
||||
- `GET /healthz` currently always returns `200 OK`.
|
||||
- `GET /healthz` returns `200 OK` when no `Origin` header is present.
|
||||
- Any request carrying an `Origin` header is rejected with `403 Forbidden`.
|
||||
|
||||
Websocket transport is currently experimental and unsupported. Do not rely on it for production workloads.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user