Created
February 5, 2015 20:19
-
-
Save jucrouzet/097ad82a22264a506f68 to your computer and use it in GitHub Desktop.
This messages comes from the fact that the JSON/XML document is not served with the correct header.jQuery uses XmlHttpRequest inside, so just overrideMimeType #javascript #firefox #jquery #xhr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beforeSend: function(xhr) { | |
xhr.overrideMimeType('application/json'); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment