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

require-sri-for CSP directive #1173

Open
yoavweiss opened this issue Feb 10, 2025 · 3 comments
Open

require-sri-for CSP directive #1173

yoavweiss opened this issue Feb 10, 2025 · 3 comments

Comments

@yoavweiss
Copy link

yoavweiss commented Feb 10, 2025

Request for Mozilla Position on an Emerging Web Specification

Other information

Subresource-Integrity (SRI) enables developers to make sure the assets they intend to load are indeed the assets they are loading. But there's no current way for developers to be sure that all of their scripts are validated using SRI.

The require-sri-for CSP directive gives developers the ability to assert that every resource of a given type needs to be integrity checked. If a resource of that type is attempted to be loaded without integrity metadata, that attempt will fail and trigger a CSP violation report.

This revives an old effort to introduce the same directive.

@zcorpan
Copy link
Member

zcorpan commented Feb 11, 2025

cc @mozfreddyb

@zcorpan zcorpan moved this from Unscreened to Needs assignees in standards-positions review Feb 11, 2025
@mozfreddyb
Copy link
Contributor

And forwarding to @beurdouche and @tomrittervg 😉

@tomrittervg
Copy link
Contributor

We have been thinking about and discussing this, we'd like to talk more on the upcoming call. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs assignees
Development

No branches or pull requests

4 participants