With automatic js installation web analytics are working but upon adding js snippet manually I start getting this error
Access to resource at ‘https://cloudflareinsights.com/cdn-cgi/rum’ from origin ‘https://example.com’ 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?