diff --git a/packages/cli/commands/worker.ts b/packages/cli/commands/worker.ts index 3c4d30d1fe8f7..4ecda5c702795 100644 --- a/packages/cli/commands/worker.ts +++ b/packages/cli/commands/worker.ts @@ -370,6 +370,8 @@ export class Worker extends Command { const port = config.getEnv('queue.health.port'); const app = express(); + app.disable('x-powered-by'); + const server = http.createServer(app); app.get( diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index d3c8042f35e50..34e6440cd9bf2 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -217,6 +217,7 @@ class App { constructor() { this.app = express(); + this.app.disable('x-powered-by'); this.endpointWebhook = config.getEnv('endpoints.webhook'); this.endpointWebhookWaiting = config.getEnv('endpoints.webhookWaiting'); diff --git a/packages/cli/src/WebhookServer.ts b/packages/cli/src/WebhookServer.ts index 465db8c94a3ea..30e35b16594af 100644 --- a/packages/cli/src/WebhookServer.ts +++ b/packages/cli/src/WebhookServer.ts @@ -193,6 +193,7 @@ class App { constructor() { this.app = express(); + this.app.disable('x-powered-by'); this.endpointWebhook = config.getEnv('endpoints.webhook'); this.endpointWebhookWaiting = config.getEnv('endpoints.webhookWaiting');