mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
"false" is also valid
This commit is contained in:
@@ -76,6 +76,14 @@ function contentSecurityPolicyTest() {
|
||||
loose: false,
|
||||
setAllHeaders: true
|
||||
}));
|
||||
app.use(helmet.contentSecurityPolicy({
|
||||
directives: {
|
||||
reportUri: false,
|
||||
'report-uri': false,
|
||||
reportTo: false,
|
||||
'report-to': false
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Vendored
+4
-4
@@ -69,8 +69,8 @@ declare namespace helmet {
|
||||
objectSrc?: HelmetCspDirectiveValue[];
|
||||
pluginTypes?: HelmetCspDirectiveValue[];
|
||||
prefetchSrc?: HelmetCspDirectiveValue[];
|
||||
reportTo?: HelmetCspDirectiveValue;
|
||||
reportUri?: HelmetCspDirectiveValue;
|
||||
reportTo?: HelmetCspDirectiveValue | false;
|
||||
reportUri?: HelmetCspDirectiveValue | false;
|
||||
requireSriFor?: HelmetCspRequireSriForValue[];
|
||||
sandbox?: HelmetCspSandboxDirective[];
|
||||
scriptSrc?: HelmetCspDirectiveValue[];
|
||||
@@ -95,8 +95,8 @@ declare namespace helmet {
|
||||
'object-src'?: HelmetCspDirectiveValue[];
|
||||
'plugin-types'?: HelmetCspDirectiveValue[];
|
||||
'prefetch-src'?: HelmetCspDirectiveValue[];
|
||||
'report-to'?: HelmetCspDirectiveValue;
|
||||
'report-uri'?: HelmetCspDirectiveValue;
|
||||
'report-to'?: HelmetCspDirectiveValue | false;
|
||||
'report-uri'?: HelmetCspDirectiveValue | false;
|
||||
'require-sri-for'?: HelmetCspRequireSriForValue[];
|
||||
'sandbox'?: HelmetCspSandboxDirective[];
|
||||
'script-src'?: HelmetCspDirectiveValue;
|
||||
|
||||
Reference in New Issue
Block a user