We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d241b9 + 0aa3116 commit 2244b11Copy full SHA for 2244b11
app.js
@@ -83,7 +83,7 @@ app.use(compression())
83
// use hsts to tell https users stick to this
84
if (config.hsts.enable) {
85
app.use(helmet.hsts({
86
- maxAge: config.hsts.maxAgeSeconds * 1000,
+ maxAge: config.hsts.maxAgeSeconds,
87
includeSubdomains: config.hsts.includeSubdomains,
88
preload: config.hsts.preload
89
}))
lib/config/default.js
@@ -13,7 +13,7 @@ module.exports = {
13
useSSL: false,
14
hsts: {
15
enable: true,
16
- maxAgeSeconds: 31536000,
+ maxAgeSeconds: 60 * 60 * 24 * 365,
17
includeSubdomains: true,
18
preload: true
19
},
0 commit comments