CSP sandbox
Applies a configurable sandbox to a protected resource.
Support in current browsers
Checked against the current browser versions recorded in MDN browser data 8.1.5.
| Browser | Minimum | Outcome | Reason |
|---|---|---|---|
| Chrome | 155 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Edge | 154 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Firefox | 157 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Safari | 27 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Chrome for Android | 155 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Firefox for Android | 157 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Safari on iOS | 27 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Android WebView | 155 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Samsung Internet | 30.0 | Works | Every required mapped BCD feature is available without a recorded qualification. |
How support changed
Each segment groups recorded releases with the same result. Gaps between recorded versions are not filled in. This is support at each release, rather than the planner’s check of every release above a minimum.
Chrome
http.headers.Content-Security-Policy.sandbox- 1 – 2424 recorded releasesNot supported
- 25 – 155130 recorded releasesWorks
Edge
http.headers.Content-Security-Policy.sandbox- 12 – 132 recorded releasesNot supported
- 14 – 15480 recorded releasesWorks
Firefox
http.headers.Content-Security-Policy.sandbox- 1 – 4952 recorded releasesNot supported
- 50 – 157108 recorded releasesWorks
Safari
http.headers.Content-Security-Policy.sandbox- 1 – 611 recorded releasesNot supported
- 7 – 2750 recorded releasesWorks
Chrome for Android
http.headers.Content-Security-Policy.sandbox- 181 recorded releaseNot supported
- 25 – 155130 recorded releasesWorks
Firefox for Android
http.headers.Content-Security-Policy.sandbox- 4 – 4943 recorded releasesNot supported
- 50 – 15798 recorded releasesWorks
Safari on iOS
http.headers.Content-Security-Policy.sandbox- 1 – 68 recorded releasesNot supported
- 7 – 2750 recorded releasesWorks
Android WebView
http.headers.Content-Security-Policy.sandbox- 1 – 46 recorded releasesNot supported
- 4.4 – 155120 recorded releasesWorks
Samsung Internet
http.headers.Content-Security-Policy.sandbox- 1.01 recorded releaseNot supported
- 1.5 – 30.051 recorded releasesWorks
BCD 8.1.5 · catalogue 2.3.0. Source corrections can change this trace without a new browser release.
What this feature can and cannot do
Helps protect against
- Over-privileged embedded documents
- Untrusted active content
Does not guarantee
- Every browser exploit
- Unsafe granted sandbox tokens
- Server authorisation
What you need before using it
- A tested list of required sandbox capabilities
Fallback to keep in place
Isolate untrusted content on a separate origin and minimise active capabilities.