Function: isOriginAllowed()
isOriginAllowed(
origin,corsOptions,request):boolean
Defined in: route-do-request.ts:116
Check if a cross-origin request should get CORS headers based on configuration.
Parameters
origin
string
The Origin header value from the request
corsOptions
The CORS configuration
request
Request
The full request object for validator function inspection
Returns
boolean
true if CORS headers should be added, false otherwise