Skip to content

Instantly share code, notes, and snippets.

@erikfig
Created July 6, 2015 19: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 erikfig/ab29aec1b53a512d01a1 to your computer and use it in GitHub Desktop.
Save erikfig/ab29aec1b53a512d01a1 to your computer and use it in GitHub Desktop.
var my_app = angular.module('myApp', [/* dependencies */]);
my_app.config(function($httpProvider) {
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment