How I Gave CloudFront a Content-Security-Policy Without Blanking My Own Site
A CSP that allowlists inline scripts by sha256 hash will take the whole site down the first time you edit one, and the failure looks like a working page serving nothing. What the policy has to contain, and why the hash approach is a trap worth escaping.