MCPcopy
hub / github.com/tinyhttp/tinyhttp / AccessControlOptions

Interface AccessControlOptions

packages/cors/src/index.ts:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { vary } from 'es-vary'
3
4export interface AccessControlOptions {
5 origin?: string | boolean | ((req: Request, res: Response) => string) | Array<string> | RegExp
6 methods?: string[]
7 allowedHeaders?: string[]
8 exposedHeaders?: string[]
9 credentials?: boolean
10 maxAge?: number
11 optionsSuccessStatus?: number
12 preflightContinue?: boolean
13}
14
15/**
16 * CORS Middleware

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected