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

UMD version doesn't work from jsDelivr because of wrong MIME #135

Closed
jcubic opened this issue Oct 15, 2021 · 0 comments · Fixed by #136
Closed

UMD version doesn't work from jsDelivr because of wrong MIME #135

jcubic opened this issue Oct 15, 2021 · 0 comments · Fixed by #136

Comments

@jcubic
Copy link
Contributor

jcubic commented Oct 15, 2021

The example shows:

<script src="https://cdn.jsdelivr.net/npm/idb-keyval@6/dist/umd.cjs"></script>

But this doesn't work because of the file extension. Browser throw error:

Refused to execute script from 'https://cdn.jsdelivr.net/npm/idb-keyval@6/dist/umd.cjs' because its MIME type ('application/node') is not executable, and strict MIME type checking is enabled.

jakearchibald added a commit that referenced this issue Oct 18, 2021
Fixes #135

Co-authored-by: Jake Archibald <jaffathecake@gmail.com>
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

Successfully merging a pull request may close this issue.

1 participant