Cors
import type { Cors } from "https://aws-api.deno.dev/v0.4/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.