Enforce websocket origin allowlist with secure-mode config
This commit is contained in:
@@ -26,6 +26,7 @@ npm run dev
|
||||
Notes:
|
||||
- Server defaults to `config.toml` when present.
|
||||
- Server bind/port defaults are `127.0.0.1:8765` unless changed in config or CLI flags.
|
||||
- Server websocket origin checks use `network.allowed_origins`; in secure mode (`allow_insecure_ws=false`), configure your real `https://` site origins.
|
||||
- Client dev defaults to Vite local host/port (`localhost:5173`) unless flags override.
|
||||
- Auth requires `CHGRID_AUTH_SECRET` in server environment; `deploy/scripts/install_server.sh` creates `server/.env` with this value automatically if missing.
|
||||
- Saved login/session persistence uses a server-set `HttpOnly` cookie (`chgrid_session_token`).
|
||||
|
||||
Reference in New Issue
Block a user