Type Alias ContentSecurityPolicy

ContentSecurityPolicy: {
    active: boolean;
    directives: {
        "base-uri"?: DirectiveFlag[];
        "block-all-mixed-content"?: DirectiveEnabled;
        "child-src"?: DirectiveSourceFlag[];
        "connect-src"?: DirectiveSourceFlag[];
        "default-src"?: DirectiveSourceFlag[];
        "font-src"?: DirectiveSourceFlag[];
        "form-action"?: DirectiveFlag[];
        "frame-ancestors"?: DirectiveFlag[];
        "frame-src"?: DirectiveSourceFlag[];
        "img-src"?: DirectiveSourceFlag[];
        "manifest-src"?: DirectiveSourceFlag[];
        "media-src"?: DirectiveSourceFlag[];
        "navigate-to"?: DirectiveFlag[];
        "object-src"?: DirectiveSourceFlag[];
        "plugin-types"?: DirectiveSource[];
        "prefetch-src"?: DirectiveSourceFlag[];
        referrer?: RefererDirectiveFlag[];
        "report-to"?: DirectiveSource;
        "report-uri"?: DirectiveSource;
        "require-trusted-types-for"?: ScriptFlag;
        sandbox?: SandboxDirectiveFlag[];
        "script-src"?: DirectiveSourceFlag[];
        "script-src-attr"?: DirectiveSourceFlag[];
        "script-src-elem"?: DirectiveSourceFlag[];
        "style-src"?: DirectiveSourceFlag[];
        "style-src-attr"?: DirectiveSourceFlag[];
        "style-src-elem"?: DirectiveSourceFlag;
        "trusted-types"?: NoneFlag | AllowDuplicatesFlag;
        "upgrade-insecure-requests"?: DirectiveEnabled;
        "worker-src"?: DirectiveSourceFlag[];
    };
}

Content Security Policy object

Type declaration