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

Fixed script mime-type bug #62

Merged
merged 2 commits into from
Jun 21, 2013
Merged

Conversation

kumarharsh
Copy link
Contributor

Fixed the demo at http://learnboost.github.io/antiscroll/
which was not working in (atleast) Chrome 27 due to this error:

Refused to execute script from 'https://raw.github.com/LearnBoost/antiscroll/master/antiscroll.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

@kumarharsh
Copy link
Contributor Author

does not work.

Actually, the problem is that the page is linking to the script on raw.github.com, which serves it with a text/plain MIME type, and a X-Content-Type-Options: nosniff header, triggering the script to NOT be executed in Chrome 27.

I'll keep looking into the problem...

@kumarharsh
Copy link
Contributor Author

Found the issue (its a general thing, being implemented by all the browsers soon)

https://code.google.com/p/chromium/issues/detail?id=180007

@calumbrodie calumbrodie mentioned this pull request Jun 10, 2013
rauchg added a commit that referenced this pull request Jun 21, 2013
@rauchg rauchg merged commit 320f58c into Automattic:gh-pages Jun 21, 2013
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 this pull request may close these issues.

3 participants