The Content-Security-Policy HTTP header is meant to block inline script and resources from untrusted servers. However, the sample Google Analytics code snippet depends on bo
This is mostly right:
You don't need the path to the image, just the protocol + host + (implied) port
Firefox differs slightly in its CSP implementation. For older versions, replace default-src
with allow
. There was a cutoff where Firefox supported default-src
as equal to allow
but most still implement with allow
until it fully supports the spec (no citation included).