Last active
November 13, 2015 10:26
-
-
Save floster/33db68d368050ad1405f to your computer and use it in GitHub Desktop.
JSON "not well-formated"
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
$.ajaxSetup({ // if Firefox => JSON "not well-formated" | |
beforeSend: function(xhr){ | |
if (xhr.overrideMimeType) | |
{ | |
xhr.overrideMimeType("application/json"); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment