Skip to content

Commit

Permalink
Minor fixes to Report API top level
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee committed Aug 30, 2024
1 parent bfe942a commit 13d34a3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions files/en-us/web/api/reporting_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ slug: Web/API/Reporting_API
page-type: web-api-overview
status:
- experimental
spec-urls: https://w3c.github.io/reporting/#intro
spec-urls:
- https://w3c.github.io/reporting/#intro
- https://w3c.github.io/webappsec-csp/#cspviolationreportbody
- https://wicg.github.io/deprecation-reporting/#deprecationreportbody
- https://wicg.github.io/intervention-reporting/#intervention-report
---

{{SeeCompatTable}}{{DefaultAPISidebar("Reporting API")}}
Expand Down Expand Up @@ -96,7 +100,7 @@ These HTTP response headers define the endpoints where reports are sent.

- {{HTTPHeader("Reporting-Endpoints")}}
- : Sets the name and URL of reporting endpoints.
These can be used in the `report-to` directive, which may be used with a number of HTTP headers including {{httpheader("Content-Security-Header")}}.
These can be used in the `report-to` directive on a [number of HTTP headers](#csp_violations).
- {{HTTPHeader("Report-To")}} {{deprecated_inline}}
- : Sets the name and URL of reporting endpoint groups, which may be used with a number of HTTP headers including `Content-Security-Header`.

Expand Down Expand Up @@ -152,12 +156,9 @@ This causes a deprecation report to be generated; because of the event handler w

## Browser compatibility

Support is at an early stage right now. Firefox supports the JavaScript API and the `Report-To` header behind preferences:
The API is supported by Chromium browsers, and by Firefox behind a preference (`dom.reporting.enabled`).

- JavaScript API: `dom.reporting.enabled` (enabled in nightly only)
- HTTP header: `dom.reporting.header.enabled`

Chrome is also working on an implementation: [information about Chrome implementation](https://developer.chrome.com/docs/capabilities/web-apis/reporting-api).
See the specific interfaces for more detailed support information.

## See also

Expand Down

0 comments on commit 13d34a3

Please sign in to comment.