Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/keywork/http/headers/mod.ts>CORSHeaders

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Latest
interface CORSHeaders
import { type CORSHeaders } from "https://deno.land/x/keywork@v6.2.1/http/headers/mod.ts";

Properties

Access-Control-Allow-Origin: string

Indicates whether the response can be shared.

Access-Control-Allow-Credentials: string

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

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.

Access-Control-Allow-Methods: string

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

Access-Control-Expose-Headers: string

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

Access-Control-Max-Age: string

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

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.

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.

Origin: string

Indicates where a fetch originates from.

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.