django-pipeline icon indicating copy to clipboard operation
django-pipeline copied to clipboard

Add subresource integrity to script tag

Open d9pouces opened this issue 1 year ago • 1 comments

Allow to integrate subresource-integrity attributes to

"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 avatar Dec 29 '23 15:12 d9pouces

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (14b6d2c) 82.35% compared to head (463a415) 82.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #805      +/-   ##
==========================================
+ Coverage   82.35%   82.68%   +0.33%     
==========================================
  Files          33       33              
  Lines        1139     1155      +16     
==========================================
+ Hits          938      955      +17     
+ Misses        201      200       -1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Dec 29 '23 15:12 codecov[bot]