Trust loopback proxy

This commit is contained in:
Alice Gaudon 2020-07-15 12:35:14 +02:00
parent eb935bf52a
commit 74dac9b314

View File

@ -17,6 +17,9 @@ export default class ExpressAppComponent extends ApplicationComponent<void> {
this.server = app.listen(this.port, 'localhost', () => { this.server = app.listen(this.port, 'localhost', () => {
Logger.info(`Web server running on localhost:${this.port}.`); Logger.info(`Web server running on localhost:${this.port}.`);
}); });
// Proxy
app.set('trust proxy', 'loopback');
} }
public async init(router: Router): Promise<void> { public async init(router: Router): Promise<void> {