☆ 3 r/security ·by Nina ·2026-11-06 Why does my Content-Security-Policy break logs in Chrome? 1173 views I added default-src self and script-src self. A third-party script now refuses to load, and Chrome reports an inline script blocked. ⧉ Copy link⚑ Report
☆ 0 L Laura ·2026-11-06#1 Read the console message: it prints the exact directive and sometimes a hash. If the script is inline, you need a nonce or a hash. ⧉ Copy link⚑ Report
☆ 0 M Meera ·2026-11-07#3 Generate a per-response nonce, put it on the script tag, and include it in script-src. Avoid unsafe-inline; it defeats most of the policy. ⧉ Copy link⚑ Report
3 replies