genkitx-aws-bedrock
    Preparing search index...

    Interface CorsOptions

    CORS configuration options

    interface CorsOptions {
        allowedHeaders?: string[];
        credentials?: boolean;
        exposedHeaders?: string[];
        maxAge?: number;
        methods?: string[];
        origin?: string | string[];
    }
    Index

    Properties

    allowedHeaders?: string[]

    Allowed headers in requests.

    ['Content-Type', 'Authorization']
    
    credentials?: boolean

    Whether to allow credentials.

    false
    
    exposedHeaders?: string[]

    Headers exposed to the client.

    maxAge?: number

    Max age for preflight cache (in seconds).

    86400 (24 hours)
    
    methods?: string[]

    Allowed HTTP methods.

    ['POST', 'OPTIONS']
    
    origin?: string | string[]

    Allowed origins for CORS requests. Can be a string, array of strings, or '*' for all origins.

    '*'