X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fui.js;h=d8953ad0df4b9a7815bd3a5db4bb64056f113db9;hp=5d631ced9a183e556043ebd99b4eb751e9760d84;hb=070d28b52b712a9067c29e6a358d39d2c3816048;hpb=8f9306c52d312af9e86cdf488bb67e24a2517bfc diff --git a/js/ui.js b/js/ui.js index 5d631ce..d8953ad 100644 --- a/js/ui.js +++ b/js/ui.js @@ -171,7 +171,7 @@ function prepareLoginButton(aCallback) { } } else { - console.log("Backend issue fetching OAuth state."); + console.log("Backend error " + aStatus + " fetching OAuth state: " + aResult["message"]); } if (aCallback) { aCallback(); } }, @@ -760,6 +760,7 @@ function fetchBackend(aEndpoint, aMethod, aSendData, aCallback, aCallbackForward } }; XHR.open(aMethod, gBackendURL + aEndpoint, true); + XHR.withCredentials = "true"; //XHR.setRequestHeader("Accept", "application/json"); try { XHR.send(aSendData); // Send actual form data.