I am playing with workers however one task i am trying to do involves making 2 external requests and i notice that while both tasks happen in the same script, each request happens on a new ip address.
Which worker that will run the script cannot be controlled, however, if you want to white-list Worker IP’s you can always find an up-to-date list of IP’s here: https://www.cloudflare.com/ips-v4
This is also a use case for me – I’m using an external API that generates a download link that is locked to the IP that requests the link. So I just need to do two back-to-back fetch() requests from the same IP. Note that the IP does not have to be consistent across invocations.
I have same issue here. Each request is different ip, which cause WAF to block request due to inconsistent ip origin. It would be nice to have a way to at least keep fetch ip the same in an worker runtime session.