Skip to content

Instantly share code, notes, and snippets.

@nix010
Created January 19, 2018 15:06
Show Gist options
  • Save nix010/07b1dcf5a27d34c8d84c6682f205394e to your computer and use it in GitHub Desktop.
Save nix010/07b1dcf5a27d34c8d84c6682f205394e to your computer and use it in GitHub Desktop.
snippets Django
$.ajaxSetup({
headers: { 'X-CSRFToken': "{{ csrf_token }}" }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment