Skip to content

Instantly share code, notes, and snippets.

@Matheo13
Last active May 25, 2016 08:16
Show Gist options
  • Save Matheo13/3a435633a9c711bf89dda9fd9a97c326 to your computer and use it in GitHub Desktop.
Save Matheo13/3a435633a9c711bf89dda9fd9a97c326 to your computer and use it in GitHub Desktop.
ajax setup
$.ajaxSetup({
beforeSend: function(xhr) {
xhr.setRequestHeader('Authorization', '');
},
error: function(jqXhr, status, error) {
self.checkTokenValidity(true);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment