Skip to content

Instantly share code, notes, and snippets.

@cdparra
Created August 8, 2013 15:23
Show Gist options
  • Save cdparra/6185587 to your computer and use it in GitHub Desktop.
Save cdparra/6185587 to your computer and use it in GitHub Desktop.
jQuery add custom header requests (to be used on $(document).ready)
$.ajaxSetup({
beforeSend: function(xhr) {
xhr.setRequestHeader("PLAY_SESSION", sessionKey);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment