Merge pull request #28444 from ffflorian/fix/helmet

fix: Add loose option for helmet-csp
This commit is contained in:
Armando Aguirre
2018-08-28 13:07:01 -07:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ function contentSecurityPolicyTest() {
directives: {
defaultSrc: ["'self'"]
},
loose: false,
setAllHeaders: true
}));
}

View File

@@ -60,6 +60,7 @@ declare namespace helmet {
disableAndroid?: boolean;
browserSniff?: boolean;
directives?: IHelmetContentSecurityPolicyDirectives;
loose?: boolean;
}
export interface IHelmetDnsPrefetchControlConfiguration {