From adcf437c09139320a6fa5bac2a8ae2ab7cf97a41 Mon Sep 17 00:00:00 2001 From: Zak Burke Date: Mon, 20 May 2024 07:20:47 -0400 Subject: [PATCH] rebase-cleanup: restore logout The `/authn/logout` request requires the `X-Okapi-Tenant` header to succeed. (cherry picked from commit eeaa34acfec17d95e955e615e09d153a444a06b6) --- src/loginServices.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/loginServices.js b/src/loginServices.js index 52237ec0e..4ec77f3af 100644 --- a/src/loginServices.js +++ b/src/loginServices.js @@ -472,7 +472,8 @@ export async function logout(okapiUrl, store) { fetch(`${okapiUrl}/authn/logout`, { method: 'POST', mode: 'cors', - credentials: 'include' + credentials: 'include', + headers: getHeaders(store.getState()?.okapi?.tenant), }) : Promise.resolve();