mcp-use TypeScript API
    Preparing search index...

    Interface CorsOptions

    CORS configuration for routes owned by the Hono application.

    Omit cors entirely for the current no-CORS behavior. Pass cors: {} to enable with defaults (reflects the request Origin when present; wildcard origin: "*" requires an explicit opt-in).

    interface CorsOptions {
        allowedHeaders?: string[];
        credentials?: boolean;
        enabled?: boolean;
        methods?: string[];
        origin?: string | string[] | ((origin: string | null) => string | null);
    }
    Index
    allowedHeaders?: string[]
    common MCP + JSON headers
    
    credentials?: boolean

    false

    enabled?: boolean

    true when cors is set; ignored when cors is omitted

    methods?: string[]

    ["GET", "HEAD", "POST", "OPTIONS"]

    origin?: string | string[] | ((origin: string | null) => string | null)

    Allowed Origin(s). Reflect matching Origin header, or "*" when set.