From b797b2b208fa944af2556337041ec060ef9974ee Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Fri, 5 Apr 2024 14:59:04 +0100 Subject: [PATCH] =?UTF-8?q?feat(indiekit):=20don=E2=80=99t=20send=20x-powe?= =?UTF-8?q?red-by=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/indiekit/config/express.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/indiekit/config/express.js b/packages/indiekit/config/express.js index 41762b58e..f02d9d245 100644 --- a/packages/indiekit/config/express.js +++ b/packages/indiekit/config/express.js @@ -21,6 +21,9 @@ export const expressConfig = (indiekitConfig) => { // Enable reversed proxy connections app.enable("trust proxy"); + // Don’t advertise server details + app.set("x-powered-by", false); + // Body parsers app.use(express.json()); app.use(express.urlencoded({ extended: true }));