Which mechanism prevents the browser from executing a script injected into a page via a malicious third-party source?

Select the correct answer: Single Choice

Key points

  • CSP restricts script execution sources
  • CSP mitigates XSS and data injection
  • CSP is enforced via HTTP headers

Ready to go further?