AppFeedback (TypeScript)
    Preparing search index...

    Interface FetchHandlerOptions

    Optional CORS configuration for createFetchHandler. Omit it entirely to keep same-origin behaviour (no CORS headers, OPTIONS → 405).

    interface FetchHandlerOptions {
        allowedOrigin?: string | string[];
    }
    Index

    Properties

    Properties

    allowedOrigin?: string | string[]

    Browser origin(s) permitted to call this relay cross-origin.

    • '*' allows any origin (echoes *).
    • A single origin string or an array of origins: the request's Origin is echoed back only when it matches; otherwise no Access-Control-Allow-Origin is emitted (browser blocks the response).
    • Omitted: no CORS headers at all, and OPTIONS returns 405 (same as before).