Snap.svg icon indicating copy to clipboard operation
Snap.svg copied to clipboard

Update from raw.githubusercontent.com to rawgit.com

Open dominicfraser opened this issue 8 years ago • 0 comments

The previous link no longer works in modern browsers.

GitHub started using X-Content-Type-Options: nosniff, which instructs more modern browsers to enforce strict MIME type checking. It then returns the raw files in a MIME type returned by the server, preventing the browser from using the file as-intended (if the browser honours the setting).

This can be solved using https://rawgit.com/

See https://stackoverflow.com/questions/17341122/link-and-execute-external-javascript-file-hosted-on-github

dominicfraser avatar Jan 20 '18 16:01 dominicfraser