UNPKG

@nestjs/common

Version:

Nest - modern, fast, powerful node.js web framework (@common)

15 lines (14 loc) 513 B
/** * @see https://github.com/expressjs/cors */ export declare type CustomOrigin = (requestOrigin: string, callback: (err: Error | null, allow?: boolean) => void) => void; export interface CorsOptions { origin?: boolean | string | RegExp | (string | RegExp)[] | CustomOrigin; methods?: string | string[]; allowedHeaders?: string | string[]; exposedHeaders?: string | string[]; credentials?: boolean; maxAge?: number; preflightContinue?: boolean; optionsSuccessStatus?: number; }