rstacruz / cheatsheets

Cheatsheets for web development - devhints.io
https://devhints.io
13.63k stars 3.58k forks source link

Include warning on polyfill.io sheet; use CF instead #2146

Closed Christopher-Hayes closed 1 week ago

Christopher-Hayes commented 1 week ago

A warning is added to the polyfill.io sheet in relation to the malicious script that is now being served by polyfill.io. Removed all links to that domain.

The code snippets have also been updated to use Cloudflare's script instead. This allows users to keep using polyfill securely while they move their codebase away from using this polyfill.

Cloudflare press release: https://blog.cloudflare.com/polyfill-io-now-available-on-cdnjs-reduce-your-supply-chain-risk

Fixes #2145

rstacruz commented 1 week ago

thanks so much for this! its probably time to also note that polyfill.io is generally discouraged at this point.