mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Authentication
Attempt to remove the Authentication: Basic header by nulling it out on request to /api and /api/v1
This commit is contained in:
@@ -14,10 +14,11 @@ angular.module('ApiLoader', ['Utilities'])
|
|||||||
.factory('LoadBasePaths', ['$http', '$rootScope', 'Store', 'ProcessErrors',
|
.factory('LoadBasePaths', ['$http', '$rootScope', 'Store', 'ProcessErrors',
|
||||||
function ($http, $rootScope, Store, ProcessErrors) {
|
function ($http, $rootScope, Store, ProcessErrors) {
|
||||||
return function () {
|
return function () {
|
||||||
$http.get('/api/')
|
|
||||||
|
$http.({ method: 'GET', url:'/api/', headers: { 'Authorization': "" } })
|
||||||
.success(function (data) {
|
.success(function (data) {
|
||||||
var base = data.current_version;
|
var base = data.current_version;
|
||||||
$http.get(base)
|
$http.get({ method: 'GET', url:base, headers: { 'Authorization': "" } })
|
||||||
.success(function (data) {
|
.success(function (data) {
|
||||||
data.base = base;
|
data.base = base;
|
||||||
$rootScope.defaultUrls = data;
|
$rootScope.defaultUrls = data;
|
||||||
|
|||||||
Reference in New Issue
Block a user