Fix deprecation warning of "includeSubDomains"
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
6e6ce29de3
commit
4b0e997094
2
app.js
2
app.js
@ -91,7 +91,7 @@ app.use(compression())
|
|||||||
if (config.hsts.enable) {
|
if (config.hsts.enable) {
|
||||||
app.use(helmet.hsts({
|
app.use(helmet.hsts({
|
||||||
maxAge: config.hsts.maxAgeSeconds,
|
maxAge: config.hsts.maxAgeSeconds,
|
||||||
includeSubdomains: config.hsts.includeSubdomains,
|
includeSubDomains: config.hsts.includeSubdomains,
|
||||||
preload: config.hsts.preload
|
preload: config.hsts.preload
|
||||||
}))
|
}))
|
||||||
} else if (config.useSSL) {
|
} else if (config.useSSL) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user