📋 Deprecation reporting is active — deprecated API usage on this page will be reported to Report URI
← All demos · Deprecation Reporting

Deprecation Reporting

See how the browser automatically reports deprecated API usage on your site to Report URI — helping you find and fix obsolete code before it breaks.

Deprecation reporting active — the browser will report any deprecated API usage

Trigger a deprecation report

Use a deprecated browser API — the browser will automatically send a report to Report URI

Note: Deprecation reports are sent asynchronously by the browser and will not appear in the Network tab. They are delivered in the background after the API is called.
Synchronous XMLHttpRequest

Calls XMLHttpRequest.open() with async: false — a deprecated API that blocks the main thread.

Reporting-Endpoints header sent with this page
Reporting-Endpoints: default="https://helios.report-uri.com/a/t/g"
How deprecation reporting works

The browser monitors calls to deprecated APIs. When one is used, it generates a deprecation report and delivers it asynchronously to your Reporting-Endpoints endpoint. This means you can discover deprecated API usage in production — in real user sessions — without needing to instrument your code or rely on users reporting errors.

Example deprecation report payload (sent by the browser)
[{
  "age": 0,
  "type": "deprecation",
  "url": "https://report-uri-demo.com/deprecation/",
  "body": {
    "id": "NavigatorGetUserMedia",
    "anticipatedRemoval": null,
    "message": "navigator.getUserMedia() is deprecated. Please use navigator.mediaDevices.getUserMedia() instead.",
    "sourceFile": "https://report-uri-demo.com/deprecation/",
    "lineNumber": 1,
    "columnNumber": 1
  }
}]