Merge pull request #3172 from mwcz/js-updateToken-withCredentials

send cookies along with keycloak.updateToken()
This commit is contained in:
Stian Thorgersen 2016-09-05 09:37:00 +02:00 committed by GitHub
commit d9e95455a2

View file

@ -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));