A Content Security Policy (CSP) is a security standard that helps to prevent cross-site scripting (XSS) and other code injection attacks by specifying which resources can be loaded on a website. It is crucial for maintaining the integrity and security of a web application.