mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 12:37:16 +08:00
Merge pull request #28444 from ffflorian/fix/helmet
fix: Add loose option for helmet-csp
This commit is contained in:
@@ -58,6 +58,7 @@ function contentSecurityPolicyTest() {
|
||||
directives: {
|
||||
defaultSrc: ["'self'"]
|
||||
},
|
||||
loose: false,
|
||||
setAllHeaders: true
|
||||
}));
|
||||
}
|
||||
|
||||
1
types/helmet/index.d.ts
vendored
1
types/helmet/index.d.ts
vendored
@@ -60,6 +60,7 @@ declare namespace helmet {
|
||||
disableAndroid?: boolean;
|
||||
browserSniff?: boolean;
|
||||
directives?: IHelmetContentSecurityPolicyDirectives;
|
||||
loose?: boolean;
|
||||
}
|
||||
|
||||
export interface IHelmetDnsPrefetchControlConfiguration {
|
||||
|
||||
Reference in New Issue
Block a user