What is a content security policy (CSP)?
It is a header with which a site tells the browser where scripts, styles and images may be loaded from and where data may be sent. The browser blocks everything else. CSP is an extra layer of protection against XSS: even if a mistake slips into the code, a foreign script will not run.
More in the guide to web application security.