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

Support SRI - Subresource Integrity #72

Closed
e2jk opened this issue Jun 8, 2020 · 0 comments · Fixed by #142
Closed

Support SRI - Subresource Integrity #72

e2jk opened this issue Jun 8, 2020 · 0 comments · Fixed by #142
Labels
enhancement New feature or request

Comments

@e2jk
Copy link
Contributor

e2jk commented Jun 8, 2020

The URLs to Bootstrap, jQuery and Popper should contain (ideally by default) the SRI hashes.
From MDN:

Subresource Integrity (SRI) is a security feature that enables browsers to verify that resources they fetch (for example, from a CDN) are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched resource must match.

On Bootstrap's download page the SRI tags are included by default for all 3 libraries:
Capture d’écran de 2020-06-08 14-32-33

Example of how another Flask plugin addressed this :https://github.com/miguelgrinberg/Flask-Moment#subresource-integritysri
(in implementing this, it would probably be wise to include an option to deactivate SRI links)

Handy tool to calculate SRI hashes (if they are not listed anymore, for example if still pointing to an old version): https://www.srihash.org/

@greyli greyli added the feature label Jun 9, 2020
@greyli greyli added enhancement New feature or request and removed feature labels Jun 10, 2021
@yuxiaoy1 yuxiaoy1 mentioned this issue Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants