Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSP report-hash keyword #1129

Open
yoavweiss opened this issue Nov 26, 2024 · 0 comments
Open

CSP report-hash keyword #1129

yoavweiss opened this issue Nov 26, 2024 · 0 comments
Assignees

Comments

@yoavweiss
Copy link

yoavweiss commented Nov 26, 2024

Request for Mozilla Position on an Emerging Web Specification

Other information

This feature adds a new CSP directive "report-hash", which triggers a new reporting type "csp-hash-report".
It reports hashes for (same-origin or CORS enabled) scripts that are loaded in the context of the document (regardless of their "integrity" attribute), and sends reports about them.

Those reports enable developers to:

  • Create inventory of the scripts running on their page. (critical for PCI-DSS v4 - context.)
  • Have certainty that they can enable SRI or CSP hash-based enforcement without breaking their sites. For some hash-based enforcement, we'd also need to add reporting for inline scripts, evals, event handlers and javascript URLs that are not covered by the current spec PR.
@yoavweiss yoavweiss changed the title CSP report-hash directive CSP report-hash keyword Dec 6, 2024
@zcorpan zcorpan moved this from Unscreened to Needs proposed position in standards-positions review Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs proposed position
Development

No branches or pull requests

3 participants