Interface: OriginValidatorContext
Context passed to OriginValidator predicate callbacks.
Includes the already-parsed originHost so factory helpers do not
re-parse, and the full Request so a predicate can inspect any header
set by a trusted intermediary (e.g. X-Forwarded-Host).
Properties
origin
origin:
string
Raw Origin header value (e.g. https://shop.example.com).
originHost
originHost:
string
Parsed host portion of the origin URL (e.g. shop.example.com).
request
request:
Request
Full incoming request — read additional headers as needed.