helmet.csp -> helmet.contentSecurityPolicy

Also updated frameguard
This commit is contained in:
Logan Tegman
2016-05-03 11:32:28 -07:00
parent 981a451d82
commit 1ea2c2a20a
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@
"express-state": "^1.2.0",
"express-validator": "^2.18.0",
"fetchr": "~0.5.12",
"frameguard": "~1.1.0",
"frameguard": "^2.0.0",
"gulp": "^3.9.0",
"gulp-babel": "^6.1.1",
"gulp-concat": "^2.6.0",

View File

@ -9,7 +9,7 @@ if (process.env.NODE_ENV !== 'production') {
}
export default function csp() {
return helmet.csp({
return helmet.contentSecurityPolicy({
directives: {
defaultSrc: trusted,
scriptSrc: [