commit
9735aa62bd
1 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,10 @@ app.engine(
|
||||||
app.set('view engine', 'handlebars');
|
app.set('view engine', 'handlebars');
|
||||||
|
|
||||||
app.use(helmet());
|
app.use(helmet());
|
||||||
|
app.use(helmet.hsts({
|
||||||
|
maxAge: 31536000,
|
||||||
|
force: conf.env === 'production'
|
||||||
|
}));
|
||||||
app.use(
|
app.use(
|
||||||
helmet.contentSecurityPolicy({
|
helmet.contentSecurityPolicy({
|
||||||
directives: {
|
directives: {
|
||||||
|
|
Loading…
Reference in a new issue