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

CORSOptions

import type { CORSOptions } from "https://raw.githubusercontent.com/worker-tools/middleware/master/index.ts";
interface CORSOptions {
credentials?: boolean;
headers?: string[];
maxAge?: number | Temporal.Duration;
methods?: Method[];
origin?: string | {
origin: string;
}
;
}

§Properties

§
credentials?: boolean
[src]
§
headers?: string[]
[src]
§
maxAge?: number | Temporal.Duration
[src]
§
methods?: Method[]
[src]
§
origin?: string | {
origin: string;
}
[src]