rstacruz / cheatsheets

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

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

Closed Christopher-Hayes closed 5 months ago

Christopher-Hayes commented 5 months 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 5 months ago

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