mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat(core): Setup helmet.js for setting security headers (#9027)
This commit is contained in:
committed by
GitHub
parent
46e432b177
commit
0ed46711f4
@@ -32,7 +32,7 @@ export abstract class AbstractServer {
|
||||
|
||||
protected externalHooks: ExternalHooks;
|
||||
|
||||
protected protocol: string;
|
||||
protected protocol = config.getEnv('protocol');
|
||||
|
||||
protected sslKey: string;
|
||||
|
||||
@@ -65,7 +65,6 @@ export abstract class AbstractServer {
|
||||
const proxyHops = config.getEnv('proxy_hops');
|
||||
if (proxyHops > 0) this.app.set('trust proxy', proxyHops);
|
||||
|
||||
this.protocol = config.getEnv('protocol');
|
||||
this.sslKey = config.getEnv('ssl_key');
|
||||
this.sslCert = config.getEnv('ssl_cert');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user