~/talk

HTTP Headers - The Simplest Security

Talkat JSConf.Asia 2014 · 2014-11-20..11-21· [security, web-platform]
slides:none on file

Adds four concrete defenses: Content-Security-Policy blocks external scripts and disallows inline/eval unless explicitly whitelisted and offers a report-only mode; Strict-Transport-Security forces browsers to upgrade repeat visits to HTTPS with a tunable max-age but must be set over HTTPS; X-Frame-Options prevents clickjacking; X-XSS-Protection is legacy and historically buggy (IE regex bypasses). Live demo shows CSP stopping an injected script, and the recommended tool is helmet middleware for Express to set these headers consistently across browsers.

AI-written summary · about

  1. 0:00Intro
  2. 1:40Cowsay
  3. 3:32Content Security Policy
  4. 5:11CSP: Resource Directives
  5. 7:57CSP: Keywords
  6. 11:30CSP: Gotchas
  7. 12:33Content Security PC
  8. 12:53CSP: Browser Support
  9. 13:35X-XSS-Protection - by MS
  10. 15:51X-XSS-Protection - Today
  11. 16:49Man in the Middle
  12. 17:45With HTTP Strict Transport Security
  13. 18:54HSTS: Gotchas
  14. 20:14HSTS: Verification
  15. 21:59Clickjacking
  16. 22:34X-Frame-Options vs. CSP
  17. 22:49X-Frame-Options: Browser Support
  18. 22:59Node Modules
  19. 23:46Summary
  20. 24:20Conclusions
~/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.