nightpool 4 days ago

is the default-src necessary if you're using sandbox or is it redundant?

1
johncolanduoni 4 days ago

`sandbox` doesn’t affect making requests via HTML (images, stylesheets, etc.).

nightpool 3 days ago

Right, but what would be the security impact of that compared to just plain HTML? I guess it allows for some form of view counting or IP exfiltration, but other than that anything you can do with an external request you could do with an embedded data URI.

brewmarche 3 days ago

As far as I understand CSP, since it’s set to `none`, no URIs are allowed, not even `data`. Inline scripts and stylesheets are not allowed either, since `unsafe-inline` (or nonces/hashes) is missing.