Skip to main content

TrustProxyOptions

Configures Express trust proxy settings when running behind a reverse proxy (usually the case with most hosting services). Setting trustProxy allows you to retrieve the original IP address from the X-Forwarded-For header.

See the express documentation for more details.

Signature
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page