From 4a94639a6acfcace368e6da0beef59c19298ef78 Mon Sep 17 00:00:00 2001 From: Paulo Eduardo Rezende Date: Mon, 24 Feb 2020 10:25:24 -0300 Subject: [PATCH] feat(server): disable x-powered-by by default --- packages/apollo-server/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/apollo-server/src/index.ts b/packages/apollo-server/src/index.ts index 3911fbd1d3a..19e25bafc77 100644 --- a/packages/apollo-server/src/index.ts +++ b/packages/apollo-server/src/index.ts @@ -97,6 +97,8 @@ export class ApolloServer extends ApolloServerBase { // object, so we have to create it. const app = express(); + app.disable('x-powered-by'); + // provide generous values for the getting started experience super.applyMiddleware({ app,