@supabase/middleware - v0.2.0
    Preparing search index...

    Interface WithCorsConfig

    Per-instance configuration for withCors.

    interface WithCorsConfig {
        origin?: CorsOrigin;
        methods?: string[];
        allowedHeaders?: string[];
        exposedHeaders?: string[];
        credentials?: boolean;
        maxAge?: number;
        optionsSuccessStatus?: number;
    }
    Index
    origin?: CorsOrigin

    Allowed origin(s). A literal '*', an exact origin string, a list of origins, or a predicate over the request's Origin. Defaults to '*'.

    '*' cannot be combined with credentials: true (the Fetch spec forbids it); when both are set, the request's Origin is reflected instead.

    '*'

    methods?: string[]

    Methods advertised on preflight.

    the common verbs
    
    allowedHeaders?: string[]

    Headers advertised on preflight. When omitted, the request's Access-Control-Request-Headers is reflected.

    exposedHeaders?: string[]

    Response headers exposed to the client beyond the safelist.

    credentials?: boolean

    Send Access-Control-Allow-Credentials: true.

    false

    maxAge?: number

    Access-Control-Max-Age (seconds) for preflight caching.

    optionsSuccessStatus?: number

    Status for a successful preflight.

    204