megachangelog
Feature

Match Workers subrequests by upstream zone in Transform Rules

The cf.worker.upstream_zone field is now supported in Transform Rules expressions, allowing you to control rule execution based on whether a request originates from Workers in other zones. This enables granular conditional logic for handling Workers subrequests.

You can now use the cf.worker.upstream_zone field in Transform Rules to control rule execution based on whether a request originates from Workers, including subrequests issued by Workers in other zones.

Match Workers subrequests by upstream zone in Transform Rules

What's new:

  • cf.worker.upstream_zone is now supported in Transform Rules expressions.
  • Skip or apply logic conditionally when handling Workers subrequests.

For example, to add a header when the subrequest comes from another zone:

Text in Expression Editor (replace myappexample.com with your domain):

(cf.worker.upstream_zone != "" and cf.worker.upstream_zone != "myappexample.com")

Selected operation under Modify request header: Set static

Header name: X-External-Workers-Subrequest

Value: 1

This gives you more granular control in how you handle incoming requests for your zone.

Learn more in the Transform Rules documentation and Rules language fields reference.

workersrulestransform-rulesapi

Source: original entry ↗

More from Cloudflare

Follow Cloudflare to get its new changes in your feed and email digest.

Fix2026.8.2115.0

Cloudflare One Client for Linux

A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.

linuxclientcertificateshotfix
See all Cloudflare changes →