Documentation
    Preparing search index...

    Interface ConnectServeResult

    What the shell emits when serving the napplet's HTML.

    const served = createMockConnectGate().serve({ dTag: 'a', connectOrigins: ['https://api.example.org'] });
    served.granted && served.csp === "connect-src https://api.example.org";
    interface ConnectServeResult {
        aggregateHash: string;
        csp: string;
        dTag: string;
        granted: boolean;
        meta: string;
        origins: string[];
        prompted: boolean;
        refused?: string;
    }
    Index

    Properties

    aggregateHash: string
    csp: string

    Runtime connect-src directive the shell emits.

    dTag: string

    Grant key.

    granted: boolean

    true when every declared origin is granted for (dTag, aggregateHash).

    meta: string

    Discovery meta tag injected into the served HTML.

    origins: string[]

    Approved origins; empty on denial, refusal, or no connect tags.

    prompted: boolean

    Whether a consent prompt was presented during this call.

    refused?: string

    Set when the shell refuses to serve the napplet (invalid origin or cleartext policy).