mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 03:14:00 +00:00
fix(server): keep the Host-header check when binding to all interfaces
Binding HOST=0.0.0.0 no longer sets Vite's allowedHosts to true. The dev and preview servers accept IP addresses, localhost and the LAN hostnames listed in GEV_ALLOWED_HOSTS; suffix and wildcard entries are ignored. The configuration factory takes the resolved list as an input, so build/vite.js still reads no environment. Ported from #97 to the current build/vite.js layout. Fixes #21. Co-authored-by: Sameh Khamis <[email protected]> Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
bb74071dc2
commit
98b8c6c581
11 files changed
+98
-16
No files matched your search
@@ -2,6 +2,13 @@
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Keep the Host-header check when binding to all interfaces. `HOST=0.0.0.0`
|
||||
used to accept any Host; the dev and preview servers now accept IP
|
||||
addresses, `localhost` and the LAN hostnames listed in `GEV_ALLOWED_HOSTS`
|
||||
(suffix and wildcard entries are ignored), which also keeps DNS-rebinding
|
||||
names out in LAN mode. The `.local` suffix is no longer accepted by default;
|
||||
list such a name explicitly (Puspo Aditya, #97, fixes #21).
|
||||
|
||||
- Throttle the cost-bearing proxies by default instead of on request. The
|
||||
OpenAI endpoints (`/api/realtime/token`, `/api/openai/hud-summary`) now allow
|
||||
30 requests per minute per client IP and the Google Places endpoints
|
||||
|
||||
Reference in new issue
Block a user