Skip to content

lightgun-poc / lib/cors / originAllowed

Function: originAllowed() ​

originAllowed(r, allowed): boolean

Defined in: lib/cors.ts:36

Whether the request may hit state-changing endpoints at all.

Parameters ​

r ​

OriginInfo

allowed ​

string[]

Returns ​

boolean

Released under the MIT License.