News for hackers. Stuff that matters.
Re:LocalCDN – an extension that emulates CDN to improve your... by im3w1l on Tuesday October 20, 2020 @11:31AM (#24838514)
Why is it removing integrity?
Re:LocalCDN – an extension that emulates CDN to improve your... by jorams on Wednesday October 21, 2020 @08:22AM (#24847048)
Two reasons:

1. It deliberately replaces some versions of libraries with different versions. That's a feature I could do without.

2. The use of integrity hashes on cross-origin resources breaks Decentraleyes[0], and it's not fixable without browser changes.[1]

[0]: https://git.synz.io/Synzvato/decentraleyes/-/issues/16 [1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1419459

Re:LocalCDN – an extension that emulates CDN to improve your... by 3np on Wednesday October 21, 2020 @04:46AM (#24845953)
Indeed - integrity should be dependent on the content, not the URI. It looks like they do it to allow "replacements" (e.g. serve package version x.y.z-1 if it can't find x.y.z).

This sounds like a horrible idea.

Re:LocalCDN – an extension that emulates CDN to improve your... by URfejk on Tuesday October 20, 2020 @11:41AM (#24838662)
"... remove crossorigin and integrity attributes of script and stylesheet tags to increase replacements ..."
Re:LocalCDN – an extension that emulates CDN to improve your... by im3w1l on Tuesday October 20, 2020 @11:53AM (#24838843)
Yeah but I don't understand why that would be needed. It sounds dangerous.
Re:LocalCDN – an extension that emulates CDN to improve your... by u566 on Wednesday October 21, 2020 @12:19PM (#24849287)
With these things you can't replace anything. The website has to be whitelisted or you live with the fact that the libraries can't be replaced and the site is broken.
Re:LocalCDN – an extension that emulates CDN to improve your... by xtanx on Wednesday October 21, 2020 @05:05AM (#24846027)
It seems that it is "upgrading" libraries. If you look at the graph it replaces jQuery 3.3.1 with 3.4.1.