frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Cloudflare static media beacon fetch failed on Firefox

Open miohtama opened this issue 2 years ago • 3 comments

Currently Firefox cannot get CloudFlare beacon properly. For some reason Chrome does not seem to care, or does not report the error.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194. (Reason: CORS request did not succeed). Status code: (null).
  • This probably messes us our page stats
  • The likely solution is to set some headers with SvelteKit hooks that allow CORS access to statuc.cloudflareinsights.com

Steps to repeat:

  • Open https://tradingstrategy.ai/ in Firefox
  • Check console

Cloudflare beacon claims compatibility with History API so it is likely to work with SvelteKit router out of the box, but this needs to be confirmed (a separate issue).

miohtama avatar May 23 '22 21:05 miohtama