Skip to content
Snippets Groups Projects
Commit f68f17f6 authored by Julian's avatar Julian
Browse files

fixed CORS behaviour in oauth2.logout

parent fbdc132f
No related branches found
No related tags found
No related merge requests found
......@@ -56,11 +56,7 @@ function logout_services() {
});
elem.data('urls').forEach(function (url) {
p = p.then(function () {
return fetch(url[1], {method: url[0], credentials: 'include'})
.then(function (resp) {
if (!resp.ok)
throw new Error('Server error');
});
return fetch(url[1], {method: url[0], credentials: 'include', mode: 'no-cors'});
});
});
p = p.then(function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment