Manual web analytics installation and blocked by CORS policy: No 'Access-Control-Allow-Origin' header

With automatic js installation web analytics are working but upon adding js snippet manually I start getting this error

Access to resource at ‘’ from origin ‘’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

I’ve tried adding nginx header in server block like this add_header Referer $host; add_header Origin $host;. It add the header to my site but the console errors still persist and CF still shows site inactive in web analytics.

Let me know if I’m getting it wrong?

I’m also experiencing exactly the same problem. I found no way to make the JS install to work. :frowning:

It seems like Cloudflare fixed this issue. I opened a ticket with them and they replied today confirming it is fixed. :slight_smile:

Awesome! I just tried and now its working fine. Thanks for updating.