send cookies along with keycloak.updateToken()

This commit is contained in:
mwcz authored and GitHub committed 2016-08-26 11:23:44 -04:00
1 parent 2a29f2a9c6
commit ec5289b5c8
1 file changed
+1
@@ -380,6 +380,7 @@
var req = new XMLHttpRequest();
req.open('POST', url, true);
req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
req.withCredentials = true;
if (kc.clientId && kc.clientSecret) {
req.setRequestHeader('Authorization', 'Basic ' + btoa(kc.clientId + ':' + kc.clientSecret));