Skip to content

Fix express misconfiguration in payment service#10607

Merged
ArtyomSavchenko merged 1 commit intodevelopfrom
payment-server
Mar 10, 2026
Merged

Fix express misconfiguration in payment service#10607
ArtyomSavchenko merged 1 commit intodevelopfrom
payment-server

Conversation

@ArtyomSavchenko
Copy link
Copy Markdown
Member

@ArtyomSavchenko ArtyomSavchenko commented Mar 10, 2026

Fix express misconfiguration:

ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/app/bundle.js:160015:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/app/bundle.js:160227:22)
    at Object.keyGenerator (/app/bundle.js:160476:20)
    at /app/bundle.js:160528:33
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async /app/bundle.js:160509:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}

Signed-off-by: Artem Savchenko <armisav@gmail.com>
@huly-github-staging
Copy link
Copy Markdown

Connected to Huly®: UBERF-15823

@ArtyomSavchenko ArtyomSavchenko merged commit cd7b4ea into develop Mar 10, 2026
17 of 18 checks passed
@BykhovDenis BykhovDenis deleted the payment-server branch March 28, 2026 09:19
haiodo pushed a commit to haiodo/foundation that referenced this pull request Mar 28, 2026
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants