Skip to main content
Module

x/keywork/mod.ts>Middleware.CORSMiddleware

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
class Middleware.CORSMiddleware
extends KeyworkRouter
import { Middleware } from "https://deno.land/x/keywork@v6.0.1/mod.ts";
const { CORSMiddleware } = Middleware;

Constructors

new
CORSMiddleware(corsOptions?: Partial<CORSOptions>, routerOptions?: KeyworkRouterOptions)

Properties

protected
applyCORSHeaders: RouteRequestHandler
protected
headerAppliers: readonly CORSHeaderApplier[]
readonly
corsOptions: CORSOptions