Skip to content

Instantly share code, notes, and snippets.

@marclar
Forked from guillaumepiot/gist:3939452
Created October 11, 2013 17:38
Show Gist options
  • Save marclar/6938907 to your computer and use it in GitHub Desktop.
Save marclar/6938907 to your computer and use it in GitHub Desktop.
var myApp = angular.module('myApp').config(function($httpProvider) {
$httpProvider.defaults.headers.post['X-CSRFToken'] = $('input[name=csrfmiddlewaretoken]').val();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment