class CORSMiddleware
extends KeyworkRouter
import { CORSMiddleware } from "https://deno.land/x/keywork@v6.0.1/middleware/classes/mod.ts";
Constructors
new
CORSMiddleware(corsOptions?: Partial<CORSOptions>, routerOptions?: KeyworkRouterOptions)Properties
protected
applyCORSHeaders: RouteRequestHandlerprotected
headerAppliers: readonly CORSHeaderApplier[]readonly
corsOptions: CORSOptions