coderef

COEP violation reportsLimited availability

COEP violation reporting sends a report to a URL nominated by the Reporting-Endpoints header or the ReportingObserver API when a page violates its Cross-Origin-Embedder-Policy policy.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–95Not supported
96+Supportedsince Nov 15, 2021
Current: 155
Edge
12–95Not supported
96+Supportedsince Nov 19, 2021
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
1–16.3Not supported
16.4+Supportedsince Mar 27, 2023
Current: 27
MobileChrome Android
18–95Not supported
96+Supportedsince Nov 15, 2021
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
1–16.3Not supported
16.4+Supportedsince Mar 27, 2023
Current: 27

How to use

Not supported in Firefox, Firefox Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN — see the links below.

Feature detection

JS · check before using
if ("ReportingObserver" in globalThis && "ReportingObserver" in ReportingObserver.prototype) {
  // ReportingObserver.ReportingObserver is available
}

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
ReportingObserver.ReportingObserver.options_parameter.types_property.coep6979✕16.469✕16.4
http.headers.Cross-Origin-Embedder-Policy.report-to_parameter9696✕16.496✕16.4