server/security.ts view source
(bind_host: string): Set<string> Build the set of allowed hostnames for Host header validation based on the server's bind address.
When binding to localhost or 127.0.0.1, both are allowed
(they refer to the same interface). When binding to 0.0.0.0,
all local hostnames are allowed since we can't know which
interface the request arrived on.
bind_host
the address the server is binding to
stringreturns
Set<string> set of hostnames to accept in the Host header