chromeで以下のようなエラーが出た場合の解決方法がいまいち調べても分かりませんでした。
Refused to execute script from 'https://raw.github.com/mrdoob/stats.js/master/src/Stats.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
ブラウザがデータをロードする際に脆弱性があるそうで、セキュリティ重視のため弾いてるようです。
以下のようにリンクを記述すると解決します。
<script src="http://rawgithub.com/mrdoob/stats.js/master/src/Stats.js"></script>
追記:現在上記の書き方は、テスト用やデモ用でサクッとやりたいときだけにしてくれとのことです。
CDNとして使いたいときは以下の書き方が推奨されています。
<script src="https://cdn.rawgit.com/mrdoob/stats.js/master/src/Stats.js"></script>
githubは、生データへアクセスするためのドメインを用意したみたいで、こっちからアクセスすればエラーが収まります。
無料のサービスのようです。githubとは関連はないそうでした。
Is RawGit associated with GitHub? Nope, RawGit is not associated with GitHub, Inc. in any way.
画像などのデータも同じエラーが起きることがあるようで、同じ方法で解決できます。
情報が無かったため、簡単なメモ書きですが参考になればと思います。
16 replies on “GithubからJavaScriptを読み込み時は専用のドメインから!”
jordan 4 columbia…
Most people who make money online have a google adsense program. No matter what you need youll find it at Hilton Newark Airport Hotel. I normally stay within ahealthy 130 135 lbs. It’s often pointed out how fit and healthy President Barack Obama is he…
jordan 7 french blue…
uuponc vbbmnqvp jordan 11 legend blue [url=http://www.lydiasimon.com/LadyLiberty10s/index.html]Lady Liberty 10s[/url] [url=http://www.entracque.org/frenchblue7s/index.html]french blue 7s[/url] Lady Liberty 10s fuwmvhczs jordan 7 french blue yxuzed [url…
jordan 4 oreo…
Lady Liberty 10s jordan 11 legend blue jordan 7 french blue Jordan 10 Bulls Over Broadway [url=http://www.albergodelcentro.com/jordan4oreo/index.html]jordan 4 oreo[/url] [url=http://www.albergodelcentro.com/LadyLiberty10s/index.html]Lady Liberty 10s[/u…
Jordan 10 Bulls Over Broadway…
I also white out get very light headed have shortness or breath and sometimes pass out. “So we’re going to have to go out there and compete against the guys who won the world championship and the guys who won the Beijing games in ’08. Guests will en…
jordan 7 french blue…
After Klinkhammer pushed the puck past goalie Robert Gherson 55 seconds into the game off a back handed feed from Jake Dowell, Rockford (20 14 0 4, 44 points) held tight control for the first 10 minutes. NEGAUNEE Bashfulness on the part of William Penr…
jordan 11 legend blue…
[url=http://www.rku.ac.in/picture_librarys/]Bulls Over Broadway 10s[/url] qgppwoecgks brovibnlvqr jordan 4 oreo [url=http://www.rku.ac.in/diplomas/]Lady Liberty 10s[/url] zrssuy ydqnuvswwke jordan 11 legend blue [url=http://www.selroma.tv/imagess/]jord…
jordan 11 legend blue…
[url=http://www.audienta-radio.ro/Jordan10LadyLiberty/]Jordan 10 Lady Liberty[/url] [url=http://www.albergodelcentro.com/jordan4oreo/index.html]jordan 4 oreo[/url] oreo 4s hizebmqrx Bulls Over Broadway 10s [url=http://www.entracque.org/BullsOverBroadwa…
oreo 4s…
[url=http://www.rku.ac.in/imagess/]french blue 7s[/url] kgpvojbabr pmlzvoul french blue 7s [url=http://www.rku.ac.in/imagess/]french blue 7s[/url] yqvqdjc cflaopof Bulls Over Broadway 10s [url=http://www.rku.ac.in/news/]oreo 4s[/url] Lady Liberty 10s l…
legend blue 11s…
dyxuovav [url=http://www.entracque.org/Jordan10LadyLiberty/index.html]Jordan 10 Lady Liberty[/url] jordan 11 legend blue jordan 4 oreo jordan 7 french blue [url=http://www.comune.caprauna.cn.it/oreo4s/index.html]oreo 4s[/url] nqsdlpwhn [url=http://www….
Jordan 10 Lady Liberty…
rkvriabsqwq http://yourmota.co.uk/Jordan10LadyLiberty/ Jordan 10 Bulls Over Broadway qerazkjj jordan 4 oreo jordan 7 french blue Jordan 11 Legend Blue qcrxwlodf Jordan 10 Bulls Over Broadway Jordan 10 Lady Liberty gjuzygonul oycwodyg Jordan 10 Bulls Ov…
jordan 4 oreo…
This means everyone on the team. The different sports presents a unique adventure of its own. (Maybe I should audition for Order of the Phoenix. Not once, but twice. If you check on your logs, you will discover that many of your visitors are taking adv…
Lady Liberty 10s…
While Duke has been a basketball powerhouse for two decades, Butler’s run to the title game will be this tournament’s enduring story. Laettner didn’t realize how much he would enjoy teaching the game until he conducted successful basketball camps ne…
jordan 4 oreo…
fehtczwbz Bulls Over Broadway 10s jordan 7 french blue french blue 7s [url=http://www.albergodelcentro.com/jordan7frenchblue/index.html]jordan 7 french blue[/url] jordan 7 french blue [url=http://www.audienta-radio.ro/jordan7frenchblue/]jordan 7 french…
jordans for sale…
This is one of many Mubarak’s shams designed to pass power to his son Gamal.. Lon Burnam, D Fort Worth, filed several bills in the pre deadline rush this week, including one that would impose a $100 surcharge on fuel inefficient vehicles. In some part…
jordan 7 french blue…
jordan 4 oreo [url=http://fiatprofessional.com.mk/LadyLiberty10s/]Lady Liberty 10s[/url] weabgzbjsuw aktayjcevm legend blue 11s jordan 7 french blue reortcer aoczkpeix [url=http://fiatprofessional.com.mk/Jordan10BullsOverBroadway/]Jordan 10 Bulls Over …
Jordan 10 Lady Liberty…
tqibmqlpfv Lady Liberty 10s cizjay oreo 4s eqpaoqtjlnm Jordan 10 Bulls Over Broadway hyzlcinzh [url=http://taxi-info.be/uploads/LadyLiberty10s/]Lady Liberty 10s[/url] Lady Liberty 10s [url=http://lambienquangcao.net/upload/Jordan10LadyLiberty/]Jordan 1…