by double051 · 11y ago · 0 comments
Refused to execute script from 'https://rawgithub.com/dmauro/Keypress/master/keypress.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
EDIT: It's because Keypress is using rawgit.com instead of cdn.rawgit.com to host the actual keypress.js script.Details here - http://rawgit.com/dmauro/Keypress/master/keypress.js
Working script source - http://cdn.rawgit.com/dmauro/Keypress/master/keypress.js
<h1>Blacklisted for abuse</h1>
<p> This request has been blacklisted for sending too much traffic to <code>rawgit.com</code>. Please contact the owner of the site that sent you here and ask them to use <code>cdn.rawgit.com</code> instead, which has no traffic limit. </p>
Nevertheless I wonder if this will work when Firefox's search as you type is enabled. I guess the browser should eat up all those events, but maybe I'm wrong. Can't check it because of the blacklisted script and no time to write my own test now.