Merge pull request #121 from clems4ever/disable-express-powered-by

Disable x-powered-by header sent by express
pull/127/head
Clément Michaud 2017-10-07 22:46:07 +02:00 committed by GitHub
commit 7aa458e306
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ export default class Server {
app.use(BodyParser.urlencoded({ extended: false }));
app.use(BodyParser.json());
app.use(deps.session(expressSessionOptions));
app.disable("x-powered-by");
app.set(TRUST_PROXY, 1);
app.set(VIEWS, viewsDirectory);