Type Alias CSPEntryContent

type CSPEntryContent = {
    childSrc?: boolean;
    connectSrc?: boolean;
    connectSrcWSS?: boolean;
    createdDate?: string;
    description?: string;
    fontSrc?: boolean;
    formAction?: boolean;
    frameAncestors?: boolean;
    frameSrc?: boolean;
    imgSrc?: boolean;
    mediaSrc?: boolean;
    modifiedDate?: string;
    name?: string;
    objectSrc?: boolean;
    origin: string;
    scriptSrc?: boolean;
    styleSrc?: boolean;
    workerSrc?: boolean;
}
Index

Properties

childSrc?: boolean

Defines the valid sources for loading web workers and nested browsing contexts using elements such as frame and iFrame.

connectSrc?: boolean

Restricts the URLs that can be loaded using script interfaces.

connectSrcWSS?: boolean

Restricts the URLs that can be connected to websockets (all sources will be prefixed with 'wss://').

createdDate?: string

The UTC timestamp when the CSP entry was created.

description?: string

The reason for adding this origin to the Content Security Policy.

fontSrc?: boolean

Specifies valid sources for loading fonts.

formAction?: boolean

Allow forms to be submitted to the origin.

frameAncestors?: boolean

Specifies valid sources for embedding the resource using frame, iFrame, object, embed and applet.

frameSrc?: boolean

Specifies valid sources for loading nested browsing contexts using elements such as frame and iFrame.

imgSrc?: boolean

Specifies valid sources of images and favicons.

mediaSrc?: boolean

Specifies valid sources for loading media using the audio and video elements.

modifiedDate?: string

The UTC timestamp when the CSP entry was last modified.

name?: string

The name for this entry.

objectSrc?: boolean

Specifies valid sources for the object, embed, and applet elements.

origin: string

The origin that the CSP directives should be applied to.

scriptSrc?: boolean

Specifies valid sources for JavaScript.

styleSrc?: boolean

Specifies valid sources for stylesheets.

workerSrc?: boolean

Specifies valid sources for Worker, SharedWorker, or ServiceWorker scripts.