Add hpp for express vulnerability fix

This commit is contained in:
terakilobyte
2015-06-04 23:39:51 -04:00
parent 53a31509e6
commit 72ed16f6cf
2 changed files with 3 additions and 1 deletions

3
app.js
View File

@@ -12,6 +12,7 @@ process.on('uncaughtException', function (err) {
});
var express = require('express'),
hpp = require('hpp'),
accepts = require('accepts'),
cookieParser = require('cookie-parser'),
compress = require('compression'),
@@ -85,7 +86,7 @@ if (process.env.NODE_ENV === 'production') {
hostname: 'www.freecodecamp.com'
}));
}
app.use(hpp());
app.use(compress());
app.use(lessMiddleware(__dirname + '/public'));
app.use(logger('dev'));