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

Allow to integrate subresource-integrity attributes to javascript and… #815

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

d9pouces
Copy link
Contributor

@d9pouces d9pouces commented Jul 5, 2024

… stylesheet tags.

Require to add the two following keys beside "output_filename" in Django's setting PIPELINE['JAVASCRIPT']["your package"] and PIPELINE['STYLESHEETS']["your package"] and :

"crossorigin": "anonymous",
"integrity": "sha384",
Of course, "sha256" and "sha512" also works.
Hashes are computed at runtime and cached to minimize code changes.

Cf. https://infosec.mozilla.org/guidelines/web_security#subresource-integrity

d9pouces and others added 3 commits July 5, 2024 12:52
… stylesheet tags.

Require to add the two following keys beside "output_filename" in Django's setting PIPELINE['JAVASCRIPT']["your package"] and PIPELINE['STYLESHEETS']["your package"] and :

"crossorigin": "anonymous",
"integrity": "sha384",
Of course, "sha256" and "sha512" also works.
Hashes are computed at runtime and cached to minimize code changes.

Cf. https://infosec.mozilla.org/guidelines/web_security#subresource-integrity
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

Successfully merging this pull request may close these issues.

1 participant