Skip to content

Taxum / @taxum/core / middleware/cors / AllowCredentials

Class: AllowCredentials

Defined in: middleware/cors/allow-credentials.ts:12

Holds configuration for how to set the Access-Control-Allow-Credentials header.

See

Methods

default()

static default(): AllowCredentials

Defined in: middleware/cors/allow-credentials.ts:19

Returns

AllowCredentials


from()

static from(like): AllowCredentials

Defined in: middleware/cors/allow-credentials.ts:23

Parameters

like

AllowCredentialsLike

Returns

AllowCredentials


no()

static no(): AllowCredentials

Defined in: middleware/cors/allow-credentials.ts:45

Allows credentials for no request.

Returns

AllowCredentials


predicate()

static predicate(predicate): AllowCredentials

Defined in: middleware/cors/allow-credentials.ts:52

Allows credentials for some requests, based on a given predicate.

Parameters

predicate

AllowCredentialsPredicate

Returns

AllowCredentials


yes()

static yes(): AllowCredentials

Defined in: middleware/cors/allow-credentials.ts:38

Allows credentials for all requests.

Returns

AllowCredentials