Function type for dynamically validating request origins.
The origin extracted from the request's Origin header, Referer header, or referrer property.
The incoming request object.
The router context for accessing app-specific data.
Whether to allow the request. Return true to allow, or false, null, or undefined to reject. Can be async.
true
false
null
undefined
Function type for dynamically validating request origins.