Commit ee88a55
fix(website): preserve client IP when proxying
removeCFHeaders drops every cf-* header, including cf-connecting-ip, so
proxied origins saw only the pod's IP. Capture it before the strip and
forward it as x-forwarded-for/x-real-ip.
Affects every site using website/handlers/proxy.ts, including the VTEX
proxy routes and A/B testing via the abTesting prop, where the origin
otherwise loses geo, rate limiting, analytics and fraud signals.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 3670ea3 commit ee88a55
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
148 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
149 | 161 | | |
150 | 162 | | |
151 | 163 | | |
| |||
0 commit comments