Content Security Policy (CSP) aims to mitigate the risk of cross-site scripting attacks by giving developers fine-grained control over the resources a page is allowed to load, as well as the script it's allowed to execute.
Resources:
- Mozilla Developer Network's short introduction, which includes a basic description of the policy as well as the goals of the policy.
- A detailed tutorial which includes details on implementation, best practices, use cases, and speculation about the future of CSP.
- A working draft for the precise specifications of CSP.
- Information for Chrome Extension developers that includes how CSP affects extensions and other extension-specific information.
- CSP support in frameworks