w3c / reporting

Reporting API
https://w3c.github.io/reporting/
Other
76 stars 36 forks source link

Reports should be queued for reporting observers even when no endpoint exists #265

Open clelland opened 1 year ago

clelland commented 1 year ago

In some cases, it may be desirable to produce reports which can be seen by reporting observers, even when no endpoint has been configured.

Permissions-policy violations, for instance, can be observed and reacted to in the running page, but enabling this requires sending an endpoint value into generate and queue a report.

Callers could use a deliberately invalid name, so that the later processing steps will discard the queued report, but it would be better to make it optional in the first place.