Integrity violation reportsLimited availability
Subresource integrity violation reporting sends a report to a URL nominated by the Reporting-Endpoints header or the ReportingObserver API when a resource request violates an integrity check.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
✕Not supportedup to 155
Current: 155Edge
✕Not supportedup to 154
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
✕Not supportedup to 155
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How to use
Not supported in Chrome, Edge, Firefox, Safari, Chrome Android, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: IntegrityViolationReport.
Feature detection
JS · check before using
if ("ReportingObserver" in globalThis && "ReportingObserver" in ReportingObserver.prototype) {
// ReportingObserver.ReportingObserver is available
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (7). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| ReportingObserver.ReportingObserver.options_parameter.types_property.integrity-violation | 138 | 138 | 149 | ✕ | 138 | 149 | ✕ |
| http.headers.Integrity-Policy | 138 | 138 | ✕ | 26 | 138 | ✕ | 26 |
| http.headers.Integrity-Policy-Report-Only | 138 | 138 | ✕ | 26 | 138 | ✕ | 26 |
| http.headers.Integrity-Policy-Report-Only.blocked-destinations_script | 138 | 138 | ✕ | 26 | 138 | ✕ | 26 |
| http.headers.Integrity-Policy-Report-Only.blocked-destinations_style | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ |
| http.headers.Integrity-Policy.blocked-destinations_script | 138 | 138 | ✕ | 26 | 138 | ✕ | 26 |
| http.headers.Integrity-Policy.blocked-destinations_style | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ |