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

Hash Checking #302

Open
trymeouteh opened this issue Jan 25, 2025 · 2 comments
Open

Hash Checking #302

trymeouteh opened this issue Jan 25, 2025 · 2 comments

Comments

@trymeouteh
Copy link

trymeouteh commented Jan 25, 2025

To allow hashes to be added to importmaps for security to ensure scripts on CDN have not been tampered with by allowing the hash to be added after the URL being seperated by a space

{
  "imports": {
    "moment": "https://cdn.com/moment.js sha256=00000000",
    "lodash": "https://cdn.com/lodash.js sha512=0000000000000000"
  }
}

And also fallback URLs should be considered with hashing
#293 (comment)

@p-ob
Copy link

p-ob commented Jan 25, 2025

@trymeouteh
Copy link
Author

I believe Chromium is experimenting with this:

That is an interesting way of going about it. Any word on Safari or Firefox adoption?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants