backend: set trust proxy for improved request handling
This commit is contained in:
parent
6bd33dcf00
commit
893952c6c4
@ -42,6 +42,7 @@ const createApp = () => {
|
||||
// Serve static files
|
||||
app.use(express.static(frontendDirectoryPath));
|
||||
|
||||
app.set('trust proxy', true);
|
||||
app.use(express.json());
|
||||
app.use(jsonSyntaxErrorHandler);
|
||||
app.use(cookieParser());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user