import { type CorsOptions } from "https://deno.land/x/masx200_deno_http_middleware@2.2.2/middleware/cors_all_get.ts";
Properties
optional
origin: string | ((ctx: Context) => string | false | Promise<string | false>)Access-Control-Allow-Origin
, default is request Origin header
Access-Control-Allow-Methods
, default is 'GET,HEAD,PUT,POST,DELETE,PATCH'
optional
credentials: boolean | ((ctx: Context) => boolean | Promise<boolean>)Access-Control-Allow-Credentials
Cross-Origin-Opener-Policy
& Cross-Origin-Embedder-Policy
headers.',
default is false.