Skip to content

Instantly share code, notes, and snippets.

@marcoow
Created September 9, 2013 18:34
Show Gist options
  • Save marcoow/6499654 to your computer and use it in GitHub Desktop.
Save marcoow/6499654 to your computer and use it in GitHub Desktop.
Ember.$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
if (!jqXHR.crossDomain) {
jqXHR.setRequestHeader('X-AUTHENTICATION-TOKEN', App.Session.get('authToken'));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment