From ff961de4ce3d7f3213ad2d7fe8292f1676af96b3 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Mon, 13 Jul 2020 16:39:23 -0400 Subject: [PATCH] Add powered by header --- src/app.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app.ts b/src/app.ts index e341e84d17..649f7c40bf 100644 --- a/src/app.ts +++ b/src/app.ts @@ -37,6 +37,10 @@ const app = express() .use(logger()) .use(bodyParser.json()) .use(extractToken) + .use((req, res, next) => { + res.setHeader('X-Powered-By', 'Directus'); + next(); + }) // the auth endpoints allow you to login/logout etc. It should ignore the authentication check .use('/auth', authRouter)