Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribute polyfill via polyfill.io or something similar #1

Open
bradmarshall opened this issue Jan 13, 2023 · 0 comments
Open

Distribute polyfill via polyfill.io or something similar #1

bradmarshall opened this issue Jan 13, 2023 · 0 comments

Comments

@bradmarshall
Copy link

Any chance this could get distributed via polyfill.io (or something like it)? Linking to the script with a script tag is pretty convenient but the currently recommended “web browser” method fails for me in Safari 11 & 10. The browser refuses to load the script because Github does not set a mime type on raw files such as https://raw.githubusercontent.com/ThePedestrian/svg-path-polyfill/master/build/svg-path-polyfill.js and the browser will not run a script without a mime type for security reasons. The browser’s console shows a “X-Content-Type: nosniff” error instead:

Screenshot 2023-01-13 at 5 46 24 PM

Arguably, Github should set mime types on these files but not sure if they want people hot linking to them in the first place? It would probably look a little more trustworthy coming from a service as a side benefit.

Looks like a great polyfill though, thanks for writing it! Will likely host a local copy for now but wanted to offer the feedback. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant