Cloudflare insights CORS blocked on custom domains

For Workes & Pages, what is the name of the domain?

hey-finn.com, hey-finn.pages.dev

What is the error message?

Access to XMLHttpRequest at ‘https://cloudflareinsights.com/cdn-cgi/rum’ from origin ‘https://www.hey-finn.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

What is the issue or error you’re encountering

Cloudflare Insights only works on https://hey-finn.pages.dev/ but not for custom domain https://www.hey-finn.com/

After removing (ie. Disable) and re-creating the web analytics it started to work. :person_shrugging:

1 Like

Thank you so much. This worked for me too, a simple on and off.

1 Like