Proposal: replacement for deprecated report-uri
for content_security_policy
#97
Labels
proposal
Proposal for a change or new feature
supportive: safari
Supportive from Safari
topic: csp
Related to content security policy enforcement
Issue
Currently CSP reports can be received using the
report-uri
directive of the CSP.report-uri
however is currently deprecated. See CSP: report-uri on MDN.Solution
Thus if we want to keep this functionality for webExtensions, we need to provide an alternative. For CSP on websites, the alternative is the report-to directive. For extensions we should be able to define report-to groups. This could either be defined using two potential syntaxes.
Syntax 1
a new manifest key
report_to
like this:Syntax 2
Or we add it to the content_security_policy property like this:
Additional info
Syntax 1 has the added benefit of potentially allowing other reports to be collected in the future in case we want to add support for them like adding support for
Document-Policy
reports.The text was updated successfully, but these errors were encountered: