backend: set trust proxy for improved request handling

This commit is contained in:
juancarmore 2025-10-03 15:31:33 +02:00
parent 6bd33dcf00
commit 893952c6c4

View File

@ -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());