COEP report
The coep report fires when Cross-Origin-Embedder-Policy blocks a cross-origin resource that did not opt in.
Last update:
A coep report tells you that Cross-Origin-Embedder-Policy (COEP) blocked, or would block, a cross-origin resource that did not explicitly opt in. It is how you
find every embed that would break before you turn COEP on, which matters because
COEP is a prerequisite for cross-origin isolation.
Limited availability
COEP is standardized, but reporting support is uneven across browsers. Verify support before relying on the report stream.
When the browser sends it
When a require-corp (or credentialless) document loads a cross-origin subresource
that does not send a matching Cross-Origin-Resource-Policy or pass CORS, or embeds
a frame or worker without matching COEP. In Cross-Origin-Embedder-Policy-Report-Only
mode the browser reports the would-be block without actually blocking, which is how
you size the impact before enforcing.
Payload example
{
"type": "coep",
"age": 14,
"url": "https://example.com/",
"user_agent": "Mozilla/5.0 ...",
"body": {
"type": "corp",
"blockedURL": "https://another-example.com/image.png",
"destination": "image",
"disposition": "enforce"
}
}Every coep report body carries these fields inside the shared report envelope.
Field reference
| Field | Meaning |
|---|---|
type | The cause: corp, navigation, or worker initialization. |
blockedURL | The cross-origin resource that was blocked. |
destination | (corp reports only) the request destination, for example image, script, iframe. |
disposition | enforce, or reporting in Report-Only mode. |
The navigation and worker initialization reports carry only type, blockedURL,
and disposition.
How to receive it
Add a report-to="..." parameter to the COEP header and declare that endpoint in
Reporting-Endpoints. Use Cross-Origin-Embedder-Policy-Report-Only for a dry run
first. CentralCSP collects the coep stream.
Reporting-Endpoints: coep-endpoint="https://<Endpoint-ID>.report.centralcsp.com"Cross-Origin-Embedder-Policy-Report-Only: require-corp; report-to="coep-endpoint"What it tells you about security
Each report is a cross-origin resource that crosses the embedding boundary without opting in. Reviewing them before you enforce both prevents breakage and tightens the page against cross-origin data leaks, which is the point of COEP and of cross-origin isolation.
Gotchas
The disposition field reflects whether COEP was enforcing or running in Report-Only
mode. For COEP, both the HTML spec and Chromium use reporting for Report-Only, not
the report that CSP, Permissions-Policy, and Document-Policy use. A parser shared
across report types should accept both spellings. COEP reports are also visible to
ReportingObserver in the page.
Browser support
COEP is defined in the HTML Living Standard and require-corp is broadly supported.
The report-to parameter and the reports work in Chromium (Chrome 96+) and, according
to MDN, in Safari 16.4+; Firefox does not send COEP reports. The credentialless
value is supported in Chromium and Firefox but not in Safari.
See also
- Cross-Origin-Embedder-Policy (COEP)
- coop report
- COEP monitoring in CentralCSP
- Reporting-Endpoints header
- The report delivery format