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 8 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 5 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
Copy link

codecov bot commented Jan 19, 2025

Codecov Report

Attention: Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.75%. Comparing base (179313f) to head (b117dc8).
Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
pipeline/packager.py 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #815      +/-   ##
==========================================
+ Coverage   82.50%   82.75%   +0.25%     
==========================================
  Files          33       33              
  Lines        1160     1177      +17     
==========================================
+ Hits          957      974      +17     
  Misses        203      203              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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