From 66851bd28fcca00417c3920190b81a09c1d3c240 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Wed, 23 Jul 2014 14:35:53 -0400 Subject: [PATCH] Authentication Attempt to remove the Authentication: Basic header by nulling it out on request to /api and /api/v1 --- awx/ui/static/lib/ansible/api-loader.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/lib/ansible/api-loader.js b/awx/ui/static/lib/ansible/api-loader.js index 39744aa81c..570411efdc 100644 --- a/awx/ui/static/lib/ansible/api-loader.js +++ b/awx/ui/static/lib/ansible/api-loader.js @@ -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;