Remove X-Powered-By header (#2605)

This commit is contained in:
Cristian Dean
2019-10-01 15:35:32 +00:00
committed by Wyatt Johnson
parent 0af2fec31b
commit b3b26bd9f3
+2
View File
@@ -110,6 +110,8 @@ export const listenAndServe = (
function configureApplication(options: AppOptions) {
const { parent } = options;
parent.disable("x-powered-by");
// Trust the proxy in front of us, this will enable us to trust the fact that
// SSL was terminated correctly.
const trust = options.config.get("trust_proxy");