Skip to content

Instantly share code, notes, and snippets.

@JJediny
Forked from pankaj28843/app.js
Last active August 29, 2015 14:20
Show Gist options
  • Save JJediny/4df735ca5824ff6d576a to your computer and use it in GitHub Desktop.
Save JJediny/4df735ca5824ff6d576a to your computer and use it in GitHub Desktop.
'use strict';
angular.module('App', ['ng', 'ngCookies', 'ngResource']);
angular.module('App').run(function($rootScope, $http, $cookies) {
$http.defaults.headers.common['X-CSRFToken'] = $cookies.csrftoken;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment