}
function getRedirectURI() {
- return window.location.protocol + '//' + window.location.host + window.location.pathname + "login.html";
+ return window.location.protocol + '//' + window.location.host + window.location.pathname.replace("index.html", "") + "login.html";
}
function doLogout() {
}
}
else {
- console.log("Backend issue fetching OAuth state.");
+ console.log("Backend error " + aStatus + " fetching OAuth state: " + aResult["message"]);
}
if (aCallback) { aCallback(); }
},
}
};
XHR.open(aMethod, gBackendURL + aEndpoint, true);
+ XHR.withCredentials = "true";
//XHR.setRequestHeader("Accept", "application/json");
try {
XHR.send(aSendData); // Send actual form data.