ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข2y agoโ€ข
5 replies
AstroDev

How to call a Worker from another Worker (403)

Inside of a Worker - how do you call another Worker without Cloudflare challenging the request?

E.g.

//Worker A
export default {
  async fetch(request, env) {
    //Worker B
    await fetch('https://test.workers.dev');
    //^ This throws 403 with a CF challenge
  }
}
//Worker A
export default {
  async fetch(request, env) {
    //Worker B
    await fetch('https://test.workers.dev');
    //^ This throws 403 with a CF challenge
  }
}


I've tried adding a bunch of headers into the Fetch - but still get the 403.

Is there a way to tell Cloudflare to trust its own IPs?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

403 from a fetch request from a Worker
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3mo ago
Worker A binding to Worker B leads to `403` error upon runtime fetch call. Why?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
PayPal IPN to a Worker always 403
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
13mo ago
How to make a worker call itself and verify that the call came from that same worker
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago