~/talk

Content Security Policy: From newbie to advanced

Talkat NDC Oslo 2025 · 2025-05-19..05-23· [security, web-platform]
links:none on file
slides:none on file

CSP basics plus a live walkthrough that builds a working policy using Chrome DevTools header override, iteratively fixing ~108 then ~146 violations down to two by adding directives and hashes and media/image/connect hosts. Shows practical tooling: copying script hashes, using the integrity attribute to get hashes, and validating with CSP Evaluator. Flags real-world pitfalls: Google Tag Manager needs ~74 top‑level domains (~350 sources if duplicated), report endpoints (report‑uri / report‑to), and how lax policies (example with unsafe‑inline/unsafe‑eval) leave pages effectively unprotected; recommends nonces and hashes.

AI-written summary · about

  1. 0:00Introduction to CSP
  2. 1:52Understanding CSP basics
  3. 4:07Policy development demo
  4. 7:55Directives and sources
  5. 11:57Advanced policy configuration
  6. 14:07Refining policies in the browser
  7. 17:46Handling third-party scripts
  8. 21:35Wildcards and policy evaluation
  9. 27:29Hashes and nonces for scripts
  10. 32:22Strict dynamic and security
  11. 34:28Best practices and common pitfalls
  12. 42:31Security headers and relations
  13. 44:59Policy reporting
  14. 45:37Case study and troubleshooting
  15. 57:08Q&A and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.