Skip to content

Conversation

gabriellbui
Copy link
Collaborator

Relates to #3529

Description

This PR adds trustProxy option to ApiOptions to fix the validation error from the express-rate-limit middleware when Vendure runs behind reverse proxies (common with hosting services).

The new option allows Express to properly handle X-Forwarded-For headers and detect client IPs.
I also updated the docs with a usage example.

Breaking changes

No.

Screenshots

You can add screenshots here if applicable.

Checklist

📌 Always:

  • I have set a clear title
  • My PR is small and contains a single feature
  • I have checked my own PR

👍 Most of the time:

  • I have added or updated test cases
  • I have updated the README if needed

Copy link

vercel bot commented May 30, 2025

@gabriellbui is attempting to deploy a commit to the Vendure Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

github-actions bot commented May 30, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link

@gabriellbui
Copy link
Collaborator Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request May 30, 2025
@michaelbromley michaelbromley merged commit f248719 into vendure-ecommerce:minor Jun 2, 2025
22 of 24 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jun 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants