mirror of
https://github.com/ansible/awx.git
synced 2026-01-24 16:01:20 -03: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:
parent
d24800bf5f
commit
66851bd28f
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user