Skip to content

Instantly share code, notes, and snippets.

@lemonlatte
Forked from guillaumepiot/gist:3939452
Created June 19, 2013 08:37
Show Gist options
  • Select an option

  • Save lemonlatte/5812685 to your computer and use it in GitHub Desktop.

Select an option

Save lemonlatte/5812685 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