A trust policy to HTTP proxy forwarding records.

Defines how to treat proxy forwarding information contained in request headers.

Hierarchy

  • HttpForwardTrust

Properties

Properties

trusted?: boolean | Checker | Params

Whether the forwarding records in HTTP request headers are trusted.

When this information is trusted the host and protocol in request header is used as a request ones.

This can be one of:

Default Value

false which means the Forwarded and X-Forwarded-... headers won't be parsed.

xForwarded?: boolean

Whether to consider X-Forwarded-... headers if Forwarded is absent.

An http-header-value!HthvItems corresponding to Forwarded records are constructed by these record values.

Default

true which means these headers are processed.

Generated using TypeDoc