From 87be10576902819cc7d688596c60093ae550adb4 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Mon, 18 Sep 2017 02:55:59 +0200 Subject: [PATCH] send credentials so that cookies of the backend persists (session handling) --- js/ui.js | 1 + 1 file changed, 1 insertion(+) 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. -- 2.35.3