|
|
@ -164,9 +164,7 @@ function setupExpressApp(app) {
|
|
|
|
saveUninitialized: nconf.get('sessionSaveUninitialized') || false,
|
|
|
|
saveUninitialized: nconf.get('sessionSaveUninitialized') || false,
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
app.use(helmet({
|
|
|
|
app.use(helmet());
|
|
|
|
hsts: !!meta.config['hsts-enabled'],
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
app.use(helmet.referrerPolicy({ policy: 'strict-origin-when-cross-origin' }));
|
|
|
|
app.use(helmet.referrerPolicy({ policy: 'strict-origin-when-cross-origin' }));
|
|
|
|
if (meta.config['hsts-enabled']) {
|
|
|
|
if (meta.config['hsts-enabled']) {
|
|
|
|
app.use(helmet.hsts({
|
|
|
|
app.use(helmet.hsts({
|
|
|
|