Authentication

Attempt to remove the Authentication: Basic header by nulling it out on request to /api and /api/v1
This commit is contained in:
Chris Houseknecht 2014-07-23 14:35:53 -04:00
parent d24800bf5f
commit 66851bd28f

View File

@ -14,10 +14,11 @@ angular.module('ApiLoader', ['Utilities'])
.factory('LoadBasePaths', ['$http', '$rootScope', 'Store', 'ProcessErrors',
function ($http, $rootScope, Store, ProcessErrors) {
return function () {
$http.get('/api/')
$http.({ method: 'GET', url:'/api/', headers: { 'Authorization': "" } })
.success(function (data) {
var base = data.current_version;
$http.get(base)
$http.get({ method: 'GET', url:base, headers: { 'Authorization': "" } })
.success(function (data) {
data.base = base;
$rootScope.defaultUrls = data;