© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•4mo ago
D Trombett

Proxy requests inside workers

Inside a Worker I call an API that requires me to specifically whitelist IP addresses. Since I cannot even specify IP ranges I was thinking about proxying the request through a server with a static IP set up by me, but I'm not sure how to do it properly inside worker's fetch.
I noticed we can specify
cf.resolveOverride
cf.resolveOverride
to redirect the request to an alternate origin but docs say "
resolveOverride
resolveOverride
will only take effect if both the URL host and the host specified by
resolveOverride
resolveOverride
are within your zone". While my server can be set up in my zone, the API server is not up to me obviously.
Does this mean that I cannot use
resolveOverride
resolveOverride
? What should I use instead, or what do you suggest me to do?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Proxy requests from Workers -> Shopify
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
16mo ago
Workers Browser + Proxy
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
11mo ago
Mirror requests via Workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago