In the context of XSS, what is the purpose of Content Security Policy (CSP)?

  • Control access to databases
  • Encrypt sensitive data
  • Restrict the sources of content that can be loaded
  • Validate form inputs
Content Security Policy (CSP) is a security standard that helps prevent XSS attacks by allowing website owners to specify the trusted sources of content. It restricts the execution of scripts to trusted domains, reducing the risk of malicious script injection.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *