Skip to content

Taxum / @taxum/core / middleware/cors / AllowPrivateNetwork

Class: AllowPrivateNetwork

Defined in: middleware/cors/allow-private-network.ts:12

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

See

Methods

default()

static default(): AllowPrivateNetwork

Defined in: middleware/cors/allow-private-network.ts:19

Returns

AllowPrivateNetwork


from()

static from(like): AllowPrivateNetwork

Defined in: middleware/cors/allow-private-network.ts:23

Parameters

like

AllowPrivateNetworkLike

Returns

AllowPrivateNetwork


no()

static no(): AllowPrivateNetwork

Defined in: middleware/cors/allow-private-network.ts:45

Disallows private network requests.

Returns

AllowPrivateNetwork


predicate()

static predicate(predicate): AllowPrivateNetwork

Defined in: middleware/cors/allow-private-network.ts:52

Allows private network requests, based on a given predicate.

Parameters

predicate

AllowPrivateNetworkPredicate

Returns

AllowPrivateNetwork


yes()

static yes(): AllowPrivateNetwork

Defined in: middleware/cors/allow-private-network.ts:38

Allows private network requests.

Returns

AllowPrivateNetwork