mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-06 04:01:04 +01:00
keep enable Cache-Control
helmet.defaults() disabeles Cache-Control. I guess it's controversial to disable it.
This commit is contained in:
@@ -99,7 +99,11 @@ module.exports = function(db) {
|
||||
// connect flash for flash messages
|
||||
app.use(flash());
|
||||
|
||||
app.use(helmet.defaults());
|
||||
app.use(helmet.xframe());
|
||||
app.use(helmet.iexss());
|
||||
app.use(helmet.contentTypeOptions());
|
||||
app.use(helmet.ienoopen());
|
||||
app.disable('x-powered-by');
|
||||
|
||||
// routes should be at the last
|
||||
app.use(app.router);
|
||||
|
||||
Reference in New Issue
Block a user