KC's Workspace
    Preparing search index...
    interface CorsOptions {
        allowedHeaders?: string | string[];
        credentials?: boolean;
        exposedHeaders?: string | string[];
        maxAge?: number;
        methods?: string | string[];
        optionsSuccessStatus?: number;
        origin?:
            | CorsOrigin
            | (
                (
                    origin: string | undefined,
                    cb: (err: Error, origins: CorsOrigin) => void,
                ) => void
            );
        preflightContinue?: boolean;
    }
    Index

    Properties

    allowedHeaders?: string | string[]
    credentials?: boolean
    exposedHeaders?: string | string[]
    maxAge?: number
    methods?: string | string[]
    optionsSuccessStatus?: number
    origin?:
        | CorsOrigin
        | (
            (
                origin: string | undefined,
                cb: (err: Error, origins: CorsOrigin) => void,
            ) => void
        )

    Configures the Access-Control-Allow-Origin CORS header.

    We recommend setting a specific value rather than true to avoid exposing the source code to untrusted origins.

    preflightContinue?: boolean