import { type HTTP } from "https://deno.land/x/keywork@v6.2.0/mod.ts";
const { CORSOptions } = HTTP;
Properties
allowedOrigins: AllowedOrigins
allowedMethods: HTTPMethod[]
Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request.
Defaults to reflecting the headers specified in the incoming request's
Access-Control-Request-Headers
header.
If provided, preflight responses can be cached for subsequent requests made to
the same URL using the Access-Control-Max-Age
header.
The value is in seconds.