Parse and validate a Host header against an allowlist of hostnames (port-agnostic).
Host
localhost:3000
[::1]:3000
[::1]
Parse and validate a
Hostheader against an allowlist of hostnames (port-agnostic).localhost:3000) or IPv6 brackets (e.g.[::1]:3000).[::1]).