Skip to content

Instantly share code, notes, and snippets.

@nowk
Created March 21, 2013 19:26
Show Gist options
  • Save nowk/5215905 to your computer and use it in GitHub Desktop.
Save nowk/5215905 to your computer and use it in GitHub Desktop.
angularjs module
angular.module("app.Standards", [])
.config(function($httpProvider, $locationProvider) {
$locationProvider.html5Mode(false);
$locationProvider.hashPrefix('!');
$httpProvider.defaults.headers.
common['X-CSRF-Token'] = $('meta[name=csrf-token]').attr('content');
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment