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.
1 parent 3d98423 commit b680464Copy full SHA for b680464
server/server.js
@@ -54,8 +54,9 @@ app.use(helmet.contentSecurityPolicy({
54
// Set secure headers
55
if (process.env.PRODUCTION === true || process.env.PRODUCTION == "true") {
56
console.log("Running in production - setting headers")
57
- app.use(helmet.hsts());
58
- // app.use(helmet.contentSecurityPolicy()); Need more testing
+ app.use(helmet.hsts({
+ maxAge: 31536000,
59
+ }));
60
app.use(helmet.noSniff());
61
app.use(helmet.frameguard());
62
}
0 commit comments