Created
June 19, 2010 00:54
-
-
Save mrrooijen/444436 to your computer and use it in GitHub Desktop.
jQuery XHR settings
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
// At the top of application.js | |
jQuery.ajaxSetup({ | |
'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment