projects
/
lantea.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f9306c
)
send credentials so that cookies of the backend persists (session handling)
author
Robert Kaiser
<kairo@kairo.at>
Mon, 18 Sep 2017 00:55:59 +0000
(
02:55
+0200)
committer
Robert Kaiser
<kairo@kairo.at>
Mon, 18 Sep 2017 00:55:59 +0000
(
02:55
+0200)
js/ui.js
patch
|
blob
|
blame
|
history
diff --git
a/js/ui.js
b/js/ui.js
index 5d631ced9a183e556043ebd99b4eb751e9760d84..1ddf65a3d5b7c2fd2ebe3e3fe6547a4ae585030b 100644
(file)
--- 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.