Skip to content

Instantly share code, notes, and snippets.

@luismanolo
Forked from guillaumepiot/gist:3939452
Created May 2, 2013 05:58
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 luismanolo/5500408 to your computer and use it in GitHub Desktop.
Save luismanolo/5500408 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