fix(deps): update dependency helmet to v8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
committed by
Erik Michelson
parent
41e411301c
commit
6226fe6225
3
app.js
3
app.js
@@ -126,7 +126,8 @@ app.use(csp.addNonceToLocals)
|
||||
// https://helmetjs.github.io/docs/csp/
|
||||
if (config.csp.enable) {
|
||||
app.use(helmet.contentSecurityPolicy({
|
||||
directives: csp.computeDirectives()
|
||||
directives: csp.computeDirectives(),
|
||||
useDefaults: false
|
||||
}))
|
||||
} else {
|
||||
logger.info('Content-Security-Policy is disabled. This may be a security risk.')
|
||||
|
||||
Reference in New Issue
Block a user