Custom domain Cloudflare analytics CORS error

I have a React app hosted in Cloudflare Pages. It also has a Custom Domain setup through Cloudflare (also managed through Cloudflare). Because of this, it has two domains setup (my and a one. I am getting a CORS error when fetching the Cloudflare analytics code

Access to XMLHttpRequest at ttps://` from origin` has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

It works fine on the default domain

The error seems to be with how the CORS headers are generated/matched with the analytics code - it is not recognizing my custom domain. Is this a bug? Can I generate analytics code for my custom domain somehow? (not interested in the automatic domain generated).


:frowning: any takers? :frowning:

Bummer. Wanted to try something new. Moving back to Google Analytics. :man_shrugging: