Skip to content

Commit 0f020cc

Browse files
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

File tree

dist/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This folder contains the built output assets for the worker "crowdhandler-integration" generated at 2026-04-27T14:01:55.277Z.
1+
This folder contains the built output assets for the worker "crowdhandler-integration" generated at 2026-06-09T11:27:13.384Z.

dist/index.js

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)