Skip to content

Commit

Permalink
Use express trust to fix rate limit validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
twk3 committed Nov 13, 2024
1 parent 2bff727 commit 6a19dad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ process.on('unhandledRejection', (reason) => {

app.disable('x-powered-by');
app.use(cors());
app.set('trust proxy', config.trustedProxies);
app.use(
rateLimit({
windowMs: 60 * 1000,
Expand Down

0 comments on commit 6a19dad

Please sign in to comment.