fix(cli): Disable X-Powered-By: Express Header (#4224)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-09-28 17:09:26 +02:00 committed by GitHub
parent bb66e60afc
commit a8da9c31a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View file

@ -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(

View file

@ -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');

View file

@ -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');