From 2d16bdbf4bc4e08c97885966e62a1e79016d3d2f Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Thu, 15 Feb 2024 16:40:01 +0100 Subject: [PATCH] Removed headers from the RequestUtil.js proxy --- webui/src/common/utils/RequestUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/src/common/utils/RequestUtil.js b/webui/src/common/utils/RequestUtil.js index d3dab90..9345ca9 100644 --- a/webui/src/common/utils/RequestUtil.js +++ b/webui/src/common/utils/RequestUtil.js @@ -10,7 +10,7 @@ const getHeaders = () => { export const proxyRequest = async (path, method = "GET", body = {}, headers = {}) => { return await fetch(PROXY_URL + "/" + path, { - headers: {...getHeaders(), ...headers}, method, + headers: {...headers}, method, body: method !== "GET" ? new URLSearchParams(body) : undefined }); }