Trust the X-Forwarded-For header
This commit is contained in:
parent
4136c9360c
commit
21ce9c50cf
|
@ -24,6 +24,7 @@ const port = process.env.PORT || '8080';
|
|||
const app = express();
|
||||
|
||||
app.disable('x-powered-by');
|
||||
app.enable('trust proxy');
|
||||
|
||||
app.use(logger);
|
||||
app.use(staticFiles);
|
||||
|
|
Loading…
Reference in New Issue