1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #~: Xss filter nodejs (#1561)

This commit is contained in:
Jorge Miguel Lobo Escalona 2021-11-04 19:34:39 +01:00 committed by GitHub
parent c9cc9a29a8
commit 4eac36037b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,6 +96,7 @@ if (env && env.NODE_ENV && env.NODE_ENV === defaultWebpackMode) {
}
frontPath = '../client'
}
app.use(helmet.xssFilter())
app.use(helmet.hidePoweredBy())
app.use(compression())
app.use(`${basename}/client`, express.static(resolve(__dirname, frontPath)))