Content Security Policy

Content Security Policy Level 3: write strict CSP headers, plus the W3C Trusted Types, Permissions Policy and Fetch Metadata Request Headers a server sets and checks to lock down documents. Covers CSP Level 3 (current, Working Draft) with CSP Level 2 supported and CSP 1.0, X-Content-Security-Policy and X-WebKit-CSP legacy: directives, source lists, nonces and hashes, 'strict-dynamic', 'unsafe-hashes', report-to, report-uri, Report-Only, frame-ancestors and upgrade-insecure-requests. Trusted Types: require-trusted-types-for 'script' and the default policy. Permissions Policy: the structured header, allowlists and the iframe allow attribute, with Feature-Policy legacy. Fetch Metadata: Sec-Fetch-Site, -Mode, -Dest and -User for a resource isolation policy. Use when writing or reviewing security headers. Also CSP Embedded Enforcement, Mixed Content, Reporting API and Upgrade Insecure Requests.

ScaleDockHQ Updated

File contents

ScaleDockHQ/scaledock-skills commit 8e63442039

Frequently asked questions

npx get-skill add scaledockhq/content-security-policy