fix: add trust proxy for express-rate-limit behind nginx
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -38,6 +38,7 @@ const io = setupSocket(httpServer);
|
|||||||
app.set('io', io);
|
app.set('io', io);
|
||||||
|
|
||||||
// Middleware
|
// Middleware
|
||||||
|
app.set('trust proxy', 1);
|
||||||
app.use(helmet({ contentSecurityPolicy: false }));
|
app.use(helmet({ contentSecurityPolicy: false }));
|
||||||
app.use(cors({ origin: env.CLIENT_URL, credentials: true }));
|
app.use(cors({ origin: env.CLIENT_URL, credentials: true }));
|
||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
|
|||||||
Reference in New Issue
Block a user