---
id: "csp"
kind: "web-feature"
canonical: "https://timetostable.com/feature/csp"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# Content Security Policy (CSP) (`csp`)

Content Security Policy (CSP) helps to mitigate certain security threats, including cross-site scripting (XSS) and clickjacking attacks. It consists of a set of directives from a website to a browser, which instruct the browser to restrict the things that the site is allowed to do.

- **Group**: Security
- **Baseline**: Widely Available
- **Newly Available Date**: 2016-08-02
- **Widely Available Date**: 2019-02-02
- **Specification**: https://w3c.github.io/webappsec-csp/
- **Constituent BCD keys**: 52

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 25 | 2013-02-21 |
| Chrome Android | 25 | 2013-02-27 |
| Firefox | 23 | 2013-08-06 |
| Firefox for Android | 23 | 2013-08-06 |
| Safari on iOS | 7 | 2013-09-18 |
| Safari | 7 | 2013-10-22 |
| Edge | 14 | 2016-08-02 |

