From f68f17f6fd1fff7734a4435d60285e5c7f5965aa Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Mon, 2 Nov 2020 00:29:29 +0100 Subject: [PATCH] fixed CORS behaviour in oauth2.logout --- uffd/oauth2/templates/logout.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/uffd/oauth2/templates/logout.html b/uffd/oauth2/templates/logout.html index c414e6a7..4909595c 100644 --- a/uffd/oauth2/templates/logout.html +++ b/uffd/oauth2/templates/logout.html @@ -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 () { -- GitLab