28 ms·
> What's especially annoying about this, is that the CDNJS website has a "one-click copy" for SRI. Actually, from the screenshot it's clearly "two-click" and "
by cronin101 8y ago
> What's especially annoying about this, is that the CDNJS website has a "one-click copy" for SRI.
Actually, from the screenshot it's clearly "two-click" and "one-click" provides a link without SRI. Obviously the vast majority of people in a rush are going to use the "one-click" option, secure or not.
There's no reason why the SRI option shouldn't be default on CDNJS when the URL is specifying a specific version.
Don't trust consumers to be competent, help them out with good UI patterns. We should be advocating default = secure here.
- giancarlostoro 8y ago> We should be advocating default = secure here. Leaving no room for them to screw it up is always a good option. I know (some) Junior (or really any) devs don't always consider security at all, so they will take the quickest option even if it's wrong or insecure, so long as it "works".
- mstade 8y agoParticularly with management breathing down their necks to deliver.