Function: isOriginAllowed()
isOriginAllowed(
origin,allowedOrigins):boolean
Defined in: origin.ts:5
Returns true if origin matches any entry in the allowlist. Strings are compared exactly; RegExps are tested.
Parameters
| Parameter | Type |
|---|---|
origin | string |
allowedOrigins | (string | RegExp | undefined)[] |
Returns
boolean