frontend
frontend copied to clipboard
Cloudflare static media beacon fetch failed on Firefox
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).