Combine Worker and Tunnels

Hello everyone,

I’ve been experimenting with Cloudflare Workers and Tunnels, and I’m facing an issue when trying to access a tunnel via a Cloudflare Worker. I receive the following error message:

Error 1016

Origin DNS error

You've requested a page on a website (example.com) that is on the Cloudflare network. Cloudflare is currently unable to resolve your requested domain (example.com).

I would appreciate some guidance on how to overcome this error and successfully combine Cloudflare Workers and Tunnels. Here are some details about my setup:

Additional information:

  • I have successfully created a Cloudflare Tunnel and it is active.
  • I have tested accessing my local server directly (without the Worker) and it works fine.

I would appreciate any suggestions or insights on how to resolve this issue and combine Cloudflare Workers and Tunnels effectively. Thank you in advance for your help!

Best regards