From 2349de669837bf52822ee4e2db7b2997efa2fb5c Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Sat, 7 Oct 2017 22:18:40 +0200 Subject: [PATCH] Disable x-powered-by header sent by express --- server/src/lib/Server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/lib/Server.ts b/server/src/lib/Server.ts index ecfa152a..cdee4577 100644 --- a/server/src/lib/Server.ts +++ b/server/src/lib/Server.ts @@ -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);