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

Add support for subresource integrity in imported module scripts #52662

Open
yoavweiss opened this issue Apr 24, 2024 · 3 comments
Open

Add support for subresource integrity in imported module scripts #52662

yoavweiss opened this issue Apr 24, 2024 · 3 comments
Labels
feature request Issues that request new features to be added to Node.js.

Comments

@yoavweiss
Copy link

What is the problem this feature will solve?

SRI support for ES module imports would enable using them in documents that require SRI for certain scripts for security or privacy reasons.

See problem statement by @guybedford.

HTML PR
Chromium CL + tests

What is the feature you are proposing to solve the problem?

See proposal by @guybedford.

What alternatives have you considered?

No response

@yoavweiss yoavweiss added the feature request Issues that request new features to be added to Node.js. label Apr 24, 2024
@benjamingr
Copy link
Member

@nodejs/loaders @GeoffreyBooth

(nit: ah, the irony of removing policies and landing this)

@GeoffreyBooth
Copy link
Member

First we need to land support for import maps; there's a WIP PR for that. Then the SRI proposal for import maps needs to be accepted or at least advance to the equivalent of TC39 Stage 3. Then we can add support for it.

@guybedford
Copy link
Contributor

This is a web specification, not a TC39 one - if there is question as to whether it belongs in Node.js, this is something that could potentially be brought up at the WinterCG meeting next Thursday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js.
Projects
Status: Pending Triage
Development

No branches or pull requests

4 participants