What is the purpose of using a Content Security Policy (CSP) in web applications?
- Accelerate Page Loading Speed
- Authenticate Users
- Enhance User Interface (UI) design
- Mitigate Cross-Site Scripting (XSS) attacks
Content Security Policy (CSP) is used to mitigate Cross-Site Scripting (XSS) attacks by controlling which resources are allowed to be loaded on a web page. It helps prevent unauthorized script execution, enhancing the overall security of web applications.
Loading...
Related Quiz
- Which HTTP header is commonly used to control caching in a browser?
- How can statistics about data distribution be used in query optimization?
- The HTML5
- During a code review, you notice that a colleague frequently introduces merge conflicts due to large, sweeping changes. How would you address this issue to improve collaboration and code stability in the project?
- _______ caching stores copies of frequently accessed data on the client-side.