Merge pull request #565 from codimd/fix/hsts-subdomains-warning
Fix deprecation warning of "includeSubDomains"
This commit is contained in:
commit
e191bde013
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