webcomponents / webcomponents.org

Home of the web components community
https://www.webcomponents.org
Apache License 2.0
359 stars 95 forks source link

Failing to load demo module scripts due to strict MIME type checking #1272

Closed testuser2 closed 4 years ago

testuser2 commented 4 years ago

Origin page Failing to load demo module scripts due to strict MIME type checking in both Chrome and Firefox Developer Edition. For example in https://www.webcomponents.org/element/@polymer/paper-input/demo/demo/index.html

Errors appearing in Chrome console: A number of "Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec."

Errors appearing in Firefox console: A number of "Loading module from “https://npm-demos.appspot.com/@polymer/iron-icons@3.0.1/iron-icons.js?@polymer/paper-input@3.2.0” was blocked because of a disallowed MIME type (“text/html”)."

testuser2 commented 4 years ago

Seems to be fixed, working in both browsers.