by ATsch · 7y ago · 0 comments
For the unitiated, Content Security Policies (CSP) allow you to, among other things, define a whitelist of origins for things like scripts, css etc. and also notify you of violations. There is little excuse to not set a strong CSP on your sites if you can and you'll be glad you have it once something does happen.
[0]: https://twitter.com/JackyHallyday/status/968263408003973121
However, "was caught" is important :) The more noise they make the more likely they are to get caught.
true, but
> if you can
IIRC that excludes every website with Google Adsense and even just using a manual ad network includes always fiddling with your CSP.
Can't use CSP if you want any ads on your page usually. If anyone here knows an ad provider that plays nice with CSP and pays okay then please do let me know, I'd love to securely monetize a few webapps of mine.
Then again, GoDaddy could just rewrite your headers.
window.tcg = ...
And the script will do nothing.