Content Security Policy

Notes from OWASP on CSP

  • An extra header can be set on a server response that includes security directives for the browser
  • It can defend against XSS attacks by whitelisting certain script and other asset sources (no more evil.com/bad.js getting injected and stealing tokens from local storage)
Content Security Policy
Interactive graph