Tech
Cloudflare injects a beacon. My CSP said no.
Originally published on indiecore.net .
I deployed, opened the console on the live site out of habit, and found this:
Loading the script 'https://static.cloudflareinsights.com/beacon.min.js/v3d52…'
violates the following Content Security Policy directive: "script-src 'self'
'unsafe-inline' 'inline-speculation-rules'". The action has been blocked.
I had not added that script. It is in no template, no build output, and no dependency.
grep -c cloudflareinsights dist/index.h...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to