Skip to main content

4 docs tagged with "csp"

View all tags

Content Security Policy (CSP)

Learn how a Content Security Policy tells the browser which sources of scripts, styles, images, frames and forms to trust. Covers directives, source values, nonces, report-only rollout, and the meta tag's limits, with a live policy tester and a directive matcher.

HTML Security: Keeping Pages and Visitors Safe

Start learning HTML security: where web page risks come from, which HTML features protect visitors (escaping, rel noopener and noreferrer, iframe sandbox, CSP, https), and which protections live on the server. Includes an escaping lab and a defence matcher.

The HTML Style Element

Learn the HTML style element: how to write CSS directly inside your page, when that is better than an external file, how the order of rules decides which one wins, and how a Content-Security-Policy can block inline styles. Includes a live CSS editor, a cascade-order lab, and a real CSP experiment.

Third-Party Content Security

Learn how to keep a page safe when it embeds content you did not write: the risks of scripts, iframes and widgets, Content-Security-Policy, Subresource Integrity, iframe sandbox, Permissions-Policy, referrer and link rules, consent and privacy, click-to-load, auditing, and incident planning, with live demos.