From: Robert Kaiser Date: Mon, 18 Sep 2017 00:55:59 +0000 (+0200) Subject: send credentials so that cookies of the backend persists (session handling) X-Git-Tag: production~43 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=87be10576902819cc7d688596c60093ae550adb4;p=lantea.git send credentials so that cookies of the backend persists (session handling) --- diff --git a/js/ui.js b/js/ui.js index 5d631ce..1ddf65a 100644 --- a/js/ui.js +++ b/js/ui.js @@ -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.