I just tried this but looks like it doesn't seem to get passed (at least locally with wrangler) πŸ€” ,

I just tried this but looks like it doesn't seem to get passed (at least locally with wrangler) πŸ€” , e.g.:
await ctx.env.IMAGE_SERVICE.fetch(
    "https://image-service.worker/v1/avatars/test",
    {
      cf: {
        // Both properties not in the request cf output in the image service worker.
        serviceBinding: "api-service",
        isInternal: true,
      },
      headers: {
        // Does show up in 
        "api-key": ctx.env.IMAGE_SERVICE_API_KEY
      },
    },
  );
Was this page helpful?