Cross-Origin-Resource-Policy
Lets a resource state which origins or sites may embed it without CORS.
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 with limits | Every required mapped feature is available, but BCD records one or more qualifications. |
| 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 with limits | Every required mapped feature is available, but BCD records one or more qualifications. |
| 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 with limits | Every required mapped feature is available, but BCD records one or more qualifications. |
| 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.Cross-Origin-Resource-Policy- 1 – 7272 recorded releasesNot supported
- Until version 75, downloads for files with this header would fail in Chrome. See <a href="https://crbug.com/41452948">bug 41452948</a>.
- From version 80 to 85, linearized PDFs served inline with this header fail to render properly. See <a href="https://crbug.com/40127935">bug 40127935</a>. From version 86, partial PDF loading is disabled.
- 73 – 15582 recorded releasesWorks with limits
- Until version 75, downloads for files with this header would fail in Chrome. See <a href="https://crbug.com/41452948">bug 41452948</a>.
- From version 80 to 85, linearized PDFs served inline with this header fail to render properly. See <a href="https://crbug.com/40127935">bug 40127935</a>. From version 86, partial PDF loading is disabled.
Edge
http.headers.Cross-Origin-Resource-Policy- 12 – 187 recorded releasesNot supported
- 79 – 15475 recorded releasesWorks
Firefox
http.headers.Cross-Origin-Resource-Policy- 1 – 7376 recorded releasesNot supported
- 74 – 15784 recorded releasesWorks
Safari
http.headers.Cross-Origin-Resource-Policy- 1 – 11.119 recorded releasesNot supported
- 12 – 2742 recorded releasesWorks
Chrome for Android
http.headers.Cross-Origin-Resource-Policy- 18 – 7249 recorded releasesNot supported
- Until version 75, downloads for files with this header would fail in Chrome Android. See <a href="https://crbug.com/41452948">bug 41452948</a>.
- From version 80 to 85, linearized PDFs served inline with this header fail to render properly. See <a href="https://crbug.com/40127935">bug 40127935</a>. From version 86, partial PDF loading is disabled.
- 73 – 15582 recorded releasesWorks with limits
- Until version 75, downloads for files with this header would fail in Chrome Android. See <a href="https://crbug.com/41452948">bug 41452948</a>.
- From version 80 to 85, linearized PDFs served inline with this header fail to render properly. See <a href="https://crbug.com/40127935">bug 40127935</a>. From version 86, partial PDF loading is disabled.
Firefox for Android
http.headers.Cross-Origin-Resource-Policy- 4 – 6862 recorded releasesNot supported
- 79 – 15779 recorded releasesWorks
Safari on iOS
http.headers.Cross-Origin-Resource-Policy- 1 – 11.316 recorded releasesNot supported
- 12 – 2742 recorded releasesWorks
Android WebView
http.headers.Cross-Origin-Resource-Policy- 1 – 7244 recorded releasesNot supported
- Until version 75, downloads for files with this header would fail in WebView Android. See <a href="https://crbug.com/41452948">bug 41452948</a>.
- From version 80 to 85, linearized PDFs served inline with this header fail to render properly. See <a href="https://crbug.com/40127935">bug 40127935</a>. From version 86, partial PDF loading is disabled.
- 73 – 15582 recorded releasesWorks with limits
- Until version 75, downloads for files with this header would fail in WebView Android. See <a href="https://crbug.com/41452948">bug 41452948</a>.
- From version 80 to 85, linearized PDFs served inline with this header fail to render properly. See <a href="https://crbug.com/40127935">bug 40127935</a>. From version 86, partial PDF loading is disabled.
Samsung Internet
http.headers.Cross-Origin-Resource-Policy- 1.0 – 10.225 recorded releasesNot supported
- 11.0 – 30.027 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
- Cross-origin resource inclusion
- Selected speculative side-channel exposure
Does not guarantee
- Authorised CORS reads
- Application authorisation
- Resources served without the header
What you need before using it
- An accurate resource-sharing model
Fallback to keep in place
Use authentication, CORS, and response minimization appropriate to each resource.