Commit 0f020cc
Add IP_HEADER env var to override client IP source
Allows customers behind an upstream proxy (eg. zScaler, Imperva) to point
the worker at a different header (typically x-forwarded-for) so the real
client IP, rather than the proxy egress IP, is sent to the CrowdHandler
API. For multi-value headers the left-most entry is used. Falls back to
cf-connecting-ip if the configured header is missing/empty or anything
throws, so existing deployments are unaffected.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bdc18b4 commit 0f020cc
4 files changed
Lines changed: 39 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments