Hi,
We are going to migrate our webshop from a self-hosted environment to Shopify. However, we want to do this in phases and conduct A/B testing. We currently use Cloudflare in front of our website, and Shopify also utilizes Cloudflare for the new website, which seems to be causing problems. We upgraded to the Enterprise plan and enabled Orange to Orange as a possible solution, but the issue persists. Let me try to describe it.
We have a staging version of our current site (staging.example.com), where we intend to validate the A/B test first. Our new Shopify-based site runs at beta.example.com, and we plan to use Cloudflare Workers to fetch the site content based on a cookie, as described here: A/B testing with same-URL direct access · Cloudflare Workers docs
If the cookie content is control, we want to serve the old site. If it’s variant, we want to serve the content of beta.example.com, but on the staging.example.com domain. However, we are encountering a ‘Sorry, you have been blocked’ message when it tries to fetch the new site.
I tried to replace the URL with other Shopify sites with the same result. So my intention is the CF in front of Shopify blocks the worker requests from our CF. Any idea?