mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: remove default helmet
This commit is contained in:
@@ -164,7 +164,6 @@ function setupExpressApp(app) {
|
|||||||
saveUninitialized: nconf.get('sessionSaveUninitialized') || false,
|
saveUninitialized: nconf.get('sessionSaveUninitialized') || false,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
app.use(helmet());
|
|
||||||
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({
|
||||||
|
|||||||
Reference in New Issue
Block a user