From 14625f47f7aef563d83fb8cd2f855c27605c1668 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 15 Jan 2024 03:40:04 +0000 Subject: [PATCH] include user logins in requests --- src/actions/action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/action.js b/src/actions/action.js index 67c6dcb456..c6b89e58d3 100644 --- a/src/actions/action.js +++ b/src/actions/action.js @@ -14,7 +14,7 @@ export default function action(type, host, path, params = {}, transform) { type: `ERROR/${type}`, error, }); - const fetchDataWithRetry = delay => fetch(url, path === 'api/metadata' ? { credentials: 'include' } : {}) + const fetchDataWithRetry = delay => fetch(url, { credentials: 'include' }) .then((response) => { if (!response.ok || !response.status) { const err = new Error();