XMLHttpRequest header instantiation for Django-Angular

Change-Id: Ibb6dec29f7f57b9f150578722f7689a34ea20efc
Closes-Bug: #1371718
This commit is contained in:
Thai Tran 2014-09-19 10:41:17 -07:00
parent f9c969c496
commit c2eab663e9
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ var horizonApp = angular.module('hz', dependencies)
$interpolateProvider.endSymbol('$}');
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
$httpProvider.defaults.xsrfCookieName = 'csrftoken';
$httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
}])
.run(['hzConfig', 'hzUtils', '$cookieStore',
function (hzConfig, hzUtils, $cookieStore) {