Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Cors

import type { Cors } from "https://aws-api.deno.dev/v0.3/services/apigatewayv2.ts?docs=full";

Represents a CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.

interface Cors {
AllowCredentials?: boolean | null;
AllowHeaders?: string[] | null;
AllowMethods?: string[] | null;
AllowOrigins?: string[] | null;
ExposeHeaders?: string[] | null;
MaxAge?: number | null;
}

§Properties

§
AllowCredentials?: boolean | null
[src]

Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.

§
AllowHeaders?: string[] | null
[src]

Represents a collection of allowed headers. Supported only for HTTP APIs.

§
AllowMethods?: string[] | null
[src]

Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.

§
AllowOrigins?: string[] | null
[src]

Represents a collection of allowed origins. Supported only for HTTP APIs.

§
ExposeHeaders?: string[] | null
[src]

Represents a collection of exposed headers. Supported only for HTTP APIs.

§
MaxAge?: number | null
[src]

The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.