Csp And Sanitiser Pitfalls

Use when a web app sets a Content-Security-Policy or the other security response headers (Helmet in Express, or the same headers set by any server) or when untrusted HTML is sanitised with DOMPurify before it reaches the DOM: nonces, report-only rollout, what a header library does not validate, HSTS and upgrade-insecure-requests in development, sanitise-last, the server-side DOM, widening the allow-list, hooks, Trusted Types.

techmefr Updated

File contents

techmefr/mentis commit abec4cd3c8

Frequently asked questions

npx get-skill add techmefr/csp-and-sanitiser-pitfalls