Skip to content

Instantly share code, notes, and snippets.

@return-none
Created July 4, 2014 11:31
Show Gist options
  • Save return-none/c183de3a3189d746a3d8 to your computer and use it in GitHub Desktop.
Save return-none/c183de3a3189d746a3d8 to your computer and use it in GitHub Desktop.
angular.module('myApp', []).config(['$httpProvider', function($httpProvider) {
angular.extend($httpProvider.defaults, {
xsrfCookieName: 'csrftoken',
xsrfHeaderName: 'X-CSRFToken'
});
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment