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

Properties

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