Skip to content

Instantly share code, notes, and snippets.

@olivernn
Created January 19, 2012 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olivernn/1640750 to your computer and use it in GitHub Desktop.
Save olivernn/1640750 to your computer and use it in GitHub Desktop.
ajaz setup yo
$.ajaxSetup({
beforeSend: function(xhr) {
xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment