- cspObj(__namedParameters): Promise<{}>
Parameters
- __namedParameters: {
directives: {
base-uri?: string[];
child-src?: string[];
connect-src?: string[];
default-src?: string[];
font-src?: string[];
form-action?: string[];
frame-ancestors?: string[];
frame-src?: string[];
img-src?: string[];
manifest-src?: string[];
media-src?: string[];
navigate-to?: string[];
object-src?: string[];
report-to?: string[];
sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[];
script-src?: string[];
script-src-attr?: string[];
script-src-elem?: string[];
source-values?: string[];
style-src?: string[];
style-src-attr?: string[];
style-src-elem?: string[];
upgrade-insecure-requests?: boolean;
worker-src?: string[];
};
patterns: string[];
}directives: {
base-uri?: string[];
child-src?: string[];
connect-src?: string[];
default-src?: string[];
font-src?: string[];
form-action?: string[];
frame-ancestors?: string[];
frame-src?: string[];
img-src?: string[];
manifest-src?: string[];
media-src?: string[];
navigate-to?: string[];
object-src?: string[];
report-to?: string[];
sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[];
script-src?: string[];
script-src-attr?: string[];
script-src-elem?: string[];
source-values?: string[];
style-src?: string[];
style-src-attr?: string[];
style-src-elem?: string[];
upgrade-insecure-requests?: boolean;
worker-src?: string[];
}
Optional
base-uri?: string[]
Optional
child-src?: string[]
Optional
connect-src?: string[]
Optional
default-src?: string[]
Optional
font-src?: string[]
Optional
form-action?: string[]
Optional
frame-ancestors?: string[]
Optional
frame-src?: string[]
Optional
img-src?: string[]
Optional
manifest-src?: string[]
Optional
media-src?: string[]
Optional
navigate-to?: string[]
Optional
object-src?: string[]
Optional
report-to?: string[]
Optional
sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[]
Optional
script-src?: string[]
Optional
script-src-attr?: string[]
Optional
script-src-elem?: string[]
Optional
source-values?: string[]
Optional
style-src?: string[]
Optional
style-src-attr?: string[]
Optional
style-src-elem?: string[]
Optional
upgrade-insecure-requests?: boolean
Optional
worker-src?: string[]
patterns: string[]
Returns Promise<{}>