mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(cli): Disable X-Powered-By: Express Header (#4224)
This commit is contained in:
committed by
GitHub
parent
bb66e60afc
commit
a8da9c31a9
@@ -370,6 +370,8 @@ export class Worker extends Command {
|
|||||||
const port = config.getEnv('queue.health.port');
|
const port = config.getEnv('queue.health.port');
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
app.disable('x-powered-by');
|
||||||
|
|
||||||
const server = http.createServer(app);
|
const server = http.createServer(app);
|
||||||
|
|
||||||
app.get(
|
app.get(
|
||||||
|
|||||||
@@ -217,6 +217,7 @@ class App {
|
|||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.app = express();
|
this.app = express();
|
||||||
|
this.app.disable('x-powered-by');
|
||||||
|
|
||||||
this.endpointWebhook = config.getEnv('endpoints.webhook');
|
this.endpointWebhook = config.getEnv('endpoints.webhook');
|
||||||
this.endpointWebhookWaiting = config.getEnv('endpoints.webhookWaiting');
|
this.endpointWebhookWaiting = config.getEnv('endpoints.webhookWaiting');
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ class App {
|
|||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.app = express();
|
this.app = express();
|
||||||
|
this.app.disable('x-powered-by');
|
||||||
|
|
||||||
this.endpointWebhook = config.getEnv('endpoints.webhook');
|
this.endpointWebhook = config.getEnv('endpoints.webhook');
|
||||||
this.endpointWebhookWaiting = config.getEnv('endpoints.webhookWaiting');
|
this.endpointWebhookWaiting = config.getEnv('endpoints.webhookWaiting');
|
||||||
|
|||||||
Reference in New Issue
Block a user