mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 15:27:47 -02:30
Authorization
Fixed js error. Confirmed that setting Authorization header to '' on calls to /api and /api/v1 works. Switched debug_mode to false for the demo.
This commit is contained in:
@@ -14,7 +14,7 @@ var $AnsibleConfig = {
|
|||||||
|
|
||||||
tooltip_delay: {show: 500, hide: 100}, // Default number of milliseconds to delay displaying/hiding tooltips
|
tooltip_delay: {show: 500, hide: 100}, // Default number of milliseconds to delay displaying/hiding tooltips
|
||||||
|
|
||||||
debug_mode: true, // Enable console logging messages
|
debug_mode: false, // Enable console logging messages
|
||||||
|
|
||||||
password_strength: 45, // User password strength. Integer between 0 and 100, 100 being impossibly strong.
|
password_strength: 45, // User password strength. Integer between 0 and 100, 100 being impossibly strong.
|
||||||
// This value controls progress bar colors:
|
// This value controls progress bar colors:
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ angular.module('ApiLoader', ['Utilities'])
|
|||||||
function ($http, $rootScope, Store, ProcessErrors) {
|
function ($http, $rootScope, Store, ProcessErrors) {
|
||||||
return function () {
|
return function () {
|
||||||
|
|
||||||
$http.({ method: 'GET', url:'/api/', headers: { 'Authorization': "" } })
|
$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({ method: 'GET', url:base, headers: { 'Authorization': "" } })
|
$http({ 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