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:
Chris Houseknecht
2014-07-23 15:04:30 -04:00
parent 66851bd28f
commit 074b882714
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ var $AnsibleConfig = {
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.
// This value controls progress bar colors:

View File

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