Skip to main content

CORSHeaders

Overview

Usage

import { CORSHeaders } from 'keywork/http/headers'

Properties

Access-Control-Allow-Credentials

Access-Control-Allow-Credentials: `string`

Indicates whether to expose the response to the front-end JavaScript code when the request's credentials mode

Defined in

http/headers/mod.ts:235

Access-Control-Allow-Headers

Access-Control-Allow-Headers: `string`

Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request.

Defined in

http/headers/mod.ts:239

Access-Control-Allow-Methods

Access-Control-Allow-Methods: `string`

Specifies the methods allowed when accessing the resource in response to a preflight request.

Defined in

http/headers/mod.ts:243

Access-Control-Allow-Origin

Access-Control-Allow-Origin: `string`

Indicates whether the response can be shared.

Defined in

http/headers/mod.ts:230

Access-Control-Expose-Headers

Access-Control-Expose-Headers: `string`

Indicates which headers can be exposed as part of the response by listing their names.

Defined in

http/headers/mod.ts:247

Access-Control-Max-Age

Access-Control-Max-Age: `string`

Indicates how long the results of a preflight request can be cached.

Defined in

http/headers/mod.ts:251

Access-Control-Request-Headers

Access-Control-Request-Headers: `string`

Used when issuing a preflight request to let the server know which HTTP headers will be used when the actual request is made.

Defined in

http/headers/mod.ts:255

Access-Control-Request-Method

Access-Control-Request-Method: `string`

Used when issuing a preflight request to let the server know which HTTP method will be used when the actual request is made.

Defined in

http/headers/mod.ts:259

Origin

Origin: `string`

Indicates where a fetch originates from.

Defined in

http/headers/mod.ts:263

Timing-Allow-Origin

Timing-Allow-Origin: `string`

Specifies origins that are allowed to see values of attributes retrieved via features of the Resource Timing API, which would otherwise be reported as zero due to cross-origin restrictions.

Defined in

http/headers/mod.ts:269