We have a development site up with “Zone Lockdown” (in the Firewall tab) to prevent public access to the dev site. The problem is that we would now like to test some cloud workers on this dev site, but the fetch() calls are being treated as unauthorized requests, because the IP from which the cloud worker is running is being blocked. (The error is Error 1106, Access denied, “The owner of this website (www.demosite.com) has banned your IP address”). I also tried accessing the IP address of the origin server directly but got a different error (Error 1003, Direct IP access not allowed).
What is the best way to work around this issue? I could determine what IP the Cloudflare worker is connecting from and allow that in the firewall, but is that a static IP that would that continue to work in the future? Is there any other way to reliably allow Cloudflare workers to make HTTP requests to URLs on the same site that the worker is running on?