In the context of web security, what is the primary purpose of Content Security Policy (CSP)?

  • Mitigate Cross-Site Scripting (XSS)
  • Protect against DDoS attacks
  • Prevent SQL Injection Attacks
  • Ensure Secure File Uploads
Content Security Policy (CSP) primarily aims to mitigate Cross-Site Scripting (XSS) attacks by specifying which sources of content are considered safe and trusted. CSP helps prevent the execution of malicious scripts injected into web pages.
Add your answer
Loading...

Leave a comment

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