Are there any restrictions on Cloudflare workers to make fetch request to another workers?

Just as described in the title, I experienced a 5xx error when I just proxy Cloudflare worker A behind worker B. I use fetch inside B to fetch HTML content in A. I am wondering if there exist any restrictions or known problems that fail the procedure, considering Cloudflare uses Anycast IPs or something else.

My original purpose is to re-route using workers. For example, re-route to

Hi @yzs981130

As mentioned on the Fetch Runtime API page

Worker-to-Worker fetch requests are now possible with Service bindings.

Is this what you are looking to do?

1 Like