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 to redirect the request to an alternate origin but docs say "resolveOverride will only take effect if both the URL host and the host specified by 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? What should I use instead, or what do you suggest me to do?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?