Back to Pocketbase

Interface TrustedProxyConfig

static/jsvm/interfaces/core.TrustedProxyConfig.html

latest1.4 KB
Original Source

Interface TrustedProxyConfig

Hierarchy

  • TrustedProxyConfig

Index

Methods

marshalJSONvalidate

Properties

headersuseLeftmostIP

Methods

marshalJSON

  • marshalJSON(): string | number[]

MarshalJSON implements the [json.Marshaler] interface.

Returns string | number[]

validate

  • validate(): void

Validate makes RateLimitRule validatable by implementing [validation.Validatable] interface.

Returns void

Properties

headers

headers: string[]

Headers is a list of explicit trusted header(s) to check.

useLeftmostIP

useLeftmostIP: boolean

UseLeftmostIP specifies to use the left-mostish IP from the trusted headers.

Note that this could be insecure when used with X-Forwarded-For header because some proxies like AWS ELB allow users to prepend their own header value before appending the trusted ones.

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc