IE mime issue VS jsFiddle #97

Closed
ScottIngram opened this Issue Aug 2, 2012 · 3 comments

Projects

None yet

3 participants

While testing some knockout stuff on jsFiddle
http://jsfiddle.net/singram/WUCgc/

Internet Explorer complained:

SEC7112: Script from https://raw.github.com/SteveSanderson/knockout.mapping/master/build/output/knockout.mapping-latest.debug.js was blocked due to mime type mismatch

Contributor

I think this is Github's fault. The mime type is sent from the server to your browser in the HTTP headers. Since IE was trying to download a script, it expected the "text/javascript" mime-type. However, raw.github.com sends the "text/plain" mime-type.

As far as I know, there's no way to fix this issue by changing the Javascript source itself.

Collaborator

Agreed, I'm not sure how to fix that. Having said that, jsfiddle+github seems to work fine in other browsers, maybe there's an IE workaround as well.

@RoyJacobs RoyJacobs closed this Aug 3, 2012

Sorry, I should have linked to this thread dealing with the same problem for knockout itself...
knockout/knockout#585

The solution was to link to a copy of the file that exists outside of raw.github.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment