Skip to content
AnswerWell geo Documentation

Research · 9 min read · Answerwell

Orange-to-Orange O2O Routing: SaaS Hostnames, CNAME DNS and Zone Compatibility

How Orange-to-Orange (O2O) routes traffic through two proxy zones, when it applies, how to enable it, and product limits for SaaS customers.

This page summarises Cloudflare for SaaS customers documentation on O2O (Orange-to-Orange): a setup where you use your own proxied zone in front of a SaaS provider that also runs on Cloudflare. It is for teams that already host a custom domain on platforms such as Shopify, BigCommerce, or HubSpot and want WAF, Bot Management, Waiting Room, and other controls on their zone first.

O2O (Orange-to-Orange): what it is and when it applies

Section titled “O2O (Orange-to-Orange): what it is and when it applies”

O2O is a specific traffic routing configuration where traffic routes through two Cloudflare zones: the first zone is owned by customer 1 and the second by customer 2, who is the SaaS provider.

O2O is a specific traffic routing configuration where traffic routes through two Cloudflare zones: the first Cloudflare zone is owned by customer 1 and the second Cloudflare zone is owned by customer 2, who is considered a SaaS provider.

— Cloudflare, How it works

If you onboard hostnames to a SaaS provider that uses Cloudflare for SaaS, those hostnames exist as custom hostnames in the provider’s zone. You activate them by placing a CNAME on your authoritative DNS. If that DNS is Cloudflare and the CNAME is Proxied, you get O2O.

O2O only applies when the two zones are in different Cloudflare accounts. Because O2O is CNAME-based, it does not apply when an A record is used for apex proxying to the SaaS provider.

Without your own Cloudflare zone, traffic hits only the SaaS provider’s zone and O2O is not enabled.

Traffic flow: customer zone first, SaaS zone second

Section titled “Traffic flow: customer zone first, SaaS zone second”

With O2O, settings on your zone run first, then settings on the SaaS provider’s zone.

With O2O enabled, the settings configured in your Cloudflare zone will be applied to the traffic first, and then the settings configured in the SaaS provider’s zone will be applied to the traffic second.

— Cloudflare, How it works

Visitor traffic path: website visitor → your (customer-owned) zone → SaaS provider-owned zone → SaaS origin. That ordering is why O2O is described as proxying to your zone first, then the provider’s zone—for example in the BigCommerce and Render guides.

If you are a SaaS customer, you can take this process a step further by managing your own zone on Cloudflare. This setup - known as O2O - allows you to benefit from your provider’s setup but still customize how Cloudflare treats incoming traffic to your zone.

— Cloudflare, SaaS customers

O2O’s benefits include applying your own Cloudflare zone’s services and settings — such as WAF, Bot Management, Waiting Room, and more — on the traffic destined for your BigCommerce environment.

— Cloudflare, BigCommerce

The same benefit pattern appears across provider guides (HubSpot, Kinsta, Webflow, and others). Enabling O2O also means you take on more responsibility: products you enable on that hostname can block or alter live traffic.

cf-connecting-o2o header: how to tell O2O is active

Section titled “cf-connecting-o2o header: how to tell O2O is active”

Cloudflare does not expose a zone setting or API field that means “O2O is on”; it follows from proxied CNAME DNS toward the SaaS target.

When traffic flows through an O2O configuration, Cloudflare sets the HTTP header cf-connecting-o2o: 1 on requests entering the SaaS provider’s zone. There is no API field or zone setting that indicates whether O2O is active — it is a per-request routing behavior determined by the customer’s DNS configuration.

— Cloudflare, How it works

When SSL for SaaS is used on the provider-owned zone, requests can carry:

If SSL for SaaS is used for the SaaS provider-owned zone, a HTTP header will be set to cf-connecting-o2o: 1.

— Cloudflare, Cloudflare HTTP headers

You can inspect cf-connecting-o2o on the origin or in a Worker to branch logic for O2O traffic.

O2O is enabled per hostname with a Proxied CNAME whose target is the SaaS provider’s hostname (not an indirect chain through another proxied name on your zone).

  1. Confirm you have your own Cloudflare zone and the SaaS app is on a provider that uses Cloudflare for SaaS (custom hostname onboarding).

  2. In your zone DNS, add CNAME for the hostname you want (for example mystore) with Proxy status: Proxied and the target your provider documents.

  3. Complete any validation steps the SaaS provider requires (domain wizard, Business Manager CNAME, and similar).

  4. Avoid chaining: each O2O hostname’s CNAME should point directly at the provider target—not at another proxied record that eventually points there.

Generic pattern from How it works:

Type Name Target Proxy status
CNAME mystore customers.saasprovider.com Proxied

Provider-specific targets (all Proxied CNAME):

Provider Document Example target
Shopify Shopify guide shops.myshopify.com
BigCommerce BigCommerce guide shops.mybigcommerce.com
HubSpot HubSpot guide <HUBID>.sites-proxy.hscoscdn<##>.net
Webflow Webflow guide cdn.webflow.com
Kinsta Kinsta guide sitename.hosting.kinsta.cloud
Render Render guide e.g. example.onrender.com
WP Engine WP Engine guide wp.wpewaf.com or wp.wpenginepowered.com

Most providers allow O2O on any Cloudflare zone plan; Salesforce Commerce Cloud additionally requires an Enterprise customer zone and an SFCC Proxy Zone (not Legacy Zone), with CNAME from Business Manager such as commcloud.prod-abcd-example-com.cc-ecdn.net.

If proxied activation fails, provider guides point you to your Cloudflare account team or the SaaS vendor (BigCommerce, Render, WP Engine).

SFCC: direct CNAME vs indirect CNAME mistake

Section titled “SFCC: direct CNAME vs indirect CNAME mistake”

For Salesforce Commerce Cloud O2O, preview.example.com must CNAME directly to the SFCC hostname—not to www.example.com when www is the record that points at SFCC. Indirect targeting prevents O2O from enabling correctly on the preview hostname.

Shopify: O2O DNS, checkout protection, and HTTPS

Section titled “Shopify: O2O DNS, checkout protection, and HTTPS”

Shopify O2O uses CNAME → shops.myshopify.com (Proxied). The dashboard may show a Shopify icon on that record after save.

Shopify-specific routing includes checkout path hardening:

When you set up O2O routing for your Shopify website, Cloudflare enables specific configurations for this SaaS provider. Currently, this includes the following: Workers and Snippets are disabled on the /checkout URI path.

— Cloudflare, Shopify

Product compatibility: what works on which zone

Section titled “Product compatibility: what works on which zone”

Full matrices live in Product compatibility. These rules matter most in O2O:

As a general rule, settings on the customer zone will override settings on the SaaS zone. In addition, O2O does not permit traffic directed to a custom hostname zone into another custom hostname zone.

— Cloudflare, Product compatibility

High-signal rows for day-to-day operations:

Product / feature Customer zone SaaS provider zone Notes
WAF (custom + managed) Yes Yes Rules matching the O2O subdomain can block visitors
Bot Management Yes Yes See cache interaction below
Workers Yes* Yes Can interfere with visitor flow if matched on O2O hostname
Cache Yes* Yes Customer-zone HTML caching is generally discouraged
Page Rules / Transform Rules / Rate Limiting Yes* Yes Matching O2O subdomain may block or interfere
Always Online No No Not recommended on provider zone in O2O
Load Balancing No Yes Customer LB remains for non-O2O traffic
API Shield Yes No —
WebSockets No No —

Provider guides consistently list Caching, Workers, and Rules as commonly used compatible products, with caveats detailed in Product compatibility.

Bot Management on O2O: signals, cookies, and cache bypass

Section titled “Bot Management on O2O: signals, cookies, and cache bypass”

For O2O traffic and related subrequests where Bot Management applies, bot fields reflect the end-user (“eyeball”) connection, preserved through the chain:

For Orange-to-Orange (O2O) traffic and any related subrequests where Bot Management is in effect, Bot Management fields (including bot score, verified bot, and JA3/JA4) represent the eyeball (end-user) connection to your platform.

— Cloudflare, Bot Management variables

Why cache hit rate drops when __cf_bm is set

Section titled “Why cache hit rate drops when __cf_bm is set”

In O2O, the __cf_bm Bot Management cookie from the origin-facing zone can make the eyeball-facing zone skip cache:

In Orange-to-Orange (O2O) setups — where a SaaS provider uses Cloudflare for SaaS and their customer also has their own Cloudflare zone — the __cf_bm Bot Management cookie returned from the origin-facing Cloudflare zone can cause the eyeball-facing zone to bypass cache. This occurs because the Set-Cookie header in the response triggers Cloudflare’s default behavior of not caching responses with Set-Cookie.

— Cloudflare, Bot Management cookie causes cache bypass in O2O setups

If O2O plus Bot Management coincides with unexpectedly low cache hit rates, this interaction is a documented cause; remediation细节 sit on the linked troubleshooting page.

Common mistakes when running O2O with a SaaS provider

Section titled “Common mistakes when running O2O with a SaaS provider”
  • Using an A record or non-proxied CNAME when the setup requires a Proxied CNAME toward the provider target.
  • Indirect CNAME chains on the same zone (especially called out for SFCC).
  • Customer-zone caching of HTML or dynamic SaaS content despite stale-state risk (Product compatibility).
  • Workers, Page Rules, Transform Rules, Rate Limiting, or WAF rules scoped to the O2O hostname without testing—they can block legitimate storefront traffic.
  • Always Use HTTPS on Shopify O2O, breaking ACME HTTP-01 validation.
  • Expecting a dashboard toggle for O2O instead of verifying DNS and the cf-connecting-o2o header (How it works).
  • Removing DNS records tied to Cloudflare for SaaS onboarding, which routes traffic away from the provider (Product compatibility).
  1. In the Cloudflare DNS tab for your zone, confirm the SaaS hostname uses a Proxied CNAME pointing directly at the provider target from your provider guide (for example Shopify or How it works).
  2. Send a test request through the live hostname and verify the SaaS zone sees cf-connecting-o2o: 1 on requests, per How it works and Cloudflare HTTP headers.
  3. Review Product compatibility for features enabled on the customer zone (especially Cache, Bot Management, and rules on the O2O subdomain).
  4. If cache hit rate is low with Bot Management, compare behavior with Bot Management cookie causes cache bypass in O2O setups.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.