Set trusted proxies in CDN
This commit is contained in:
parent
d2015f06be
commit
6fa604efd1
@ -58,6 +58,9 @@ export class CDNServer extends Server {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const trustedProxies = Config.get().security.trustedProxies;
|
||||||
|
if (trustedProxies) this.app.set("trust proxy", trustedProxies);
|
||||||
|
|
||||||
this.app.disable("x-powered-by");
|
this.app.disable("x-powered-by");
|
||||||
|
|
||||||
this.app.use(CORS);
|
this.app.use(CORS);
|
||||||
|
|||||||
Reference in New Issue
Block a user