Skip to content

Taxum / @taxum/core / middleware/cors / ExposeHeaders

Class: ExposeHeaders

Defined in: middleware/cors/expose-headers.ts:10

Holds configuration for how to set the Access-Control-Expose-Headers header.

See

Methods

any()

static any(): ExposeHeaders

Defined in: middleware/cors/expose-headers.ts:47

Allows any headers by sending a wildcard (*).

Returns

ExposeHeaders


default()

static default(): ExposeHeaders

Defined in: middleware/cors/expose-headers.ts:17

Returns

ExposeHeaders


from()

static from(like): ExposeHeaders

Defined in: middleware/cors/expose-headers.ts:21

Parameters

like

ExposeHeadersLike

Returns

ExposeHeaders


list()

static list(headers): ExposeHeaders

Defined in: middleware/cors/expose-headers.ts:54

Sets multiple exposed headers.

Parameters

headers

string[]

Returns

ExposeHeaders


none()

static none(): ExposeHeaders

Defined in: middleware/cors/expose-headers.ts:40

Allows no headers.

Returns

ExposeHeaders