zibri
    Preparing search index...

    Definition of CSP options.

    type CspOptions = {
        baseUri: CspSource[];
        connectSrc: CspSource[];
        defaultSrc: CspSource[];
        fontSrc: CspSource[];
        formAction: CspSource[];
        frameAncestors: CspSource[];
        imgSrc: CspSource[];
        mediaSrc: CspSource[];
        objectSrc: CspSource[];
        scriptSrc: CspSource[];
        scriptSrcAttr: CspSource[];
        styleSrc: CspSource[];
    }
    Index

    Properties

    baseUri: CspSource[]

    Restricts the base URL used to resolve relative URLs on the page.

    connectSrc: CspSource[]

    Restricts the endpoints that the document may connect to via fetch, XHR, WebSocket, EventSource, and similar APIs.

    defaultSrc: CspSource[]

    Fallback for all fetch destinations that are not explicitly covered by a more specific directive.

    fontSrc: CspSource[]

    Restricts the origins from which fonts may be loaded.

    formAction: CspSource[]

    Restricts the URLs that can be used as form submission targets.

    frameAncestors: CspSource[]

    Restricts which origins may embed this document in frames, iframes, or objects.

    imgSrc: CspSource[]

    Restricts the origins from which images, icons, and similar media-like assets may be loaded.

    mediaSrc: CspSource[]

    Restricts the origins from which audio and video media may be loaded.

    objectSrc: CspSource[]

    Restricts the sources from which plugins such as , , and may load.

    scriptSrc: CspSource[]

    Restricts valid sources for JavaScript.

    scriptSrcAttr: CspSource[]

    Restricts inline script event handlers and similar script attributes.

    styleSrc: CspSource[]

    Restricts valid sources for stylesheets and inline style usage.