Interface CORSConfig

interface CORSConfig {
    allowedHeaders?: string[];
    credentials?: boolean;
    exposedHeaders?: string[];
    maxAge?: number;
    methods?: string[];
    optionsSuccessStatus?: number;
    origin?: string | boolean | RegExp | string[] | ((origin) => boolean);
    preflightContinue?: boolean;
}

Properties

allowedHeaders?: string[]
credentials?: boolean
exposedHeaders?: string[]
maxAge?: number
methods?: string[]
optionsSuccessStatus?: number
origin?: string | boolean | RegExp | string[] | ((origin) => boolean)

Type declaration

    • (origin): boolean
    • Parameters

      • origin: string

      Returns boolean

preflightContinue?: boolean