fix: trust proxy for express-rate-limit to prevent crash behind APISIX
Build Institutional Trader / build-and-deploy (push) Successful in 2m4s Details

This commit is contained in:
Deep Koluguri 2026-06-22 22:03:32 -04:00
parent a0c54feee5
commit 2ba6425eed
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@ import helmet from 'helmet';
import cors from 'cors';
export const setupSecurity = (app) => {
// Trust proxy for express-rate-limit behind Kubernetes Ingress
app.set('trust proxy', 1);
// Helmet for security headers
app.use(helmet({
contentSecurityPolicy: {