trustForwardedHeaders property
final
Whether to trust X-Forwarded-Host / X-Forwarded-Proto request
headers when computing redirect targets for the subdomain gateway.
Defaults to false: these headers are trivially spoofable by direct
clients, so honoring them unconditionally would let an attacker force
open redirects to arbitrary hosts. Only enable this when the gateway
sits behind a trusted reverse proxy that strips and rewrites the
forwarded headers before forwarding traffic.
Implementation
final bool trustForwardedHeaders;