Removed headers from the RequestUtil.js proxy

This commit is contained in:
2024-02-15 16:40:01 +01:00
parent c7462ae6f2
commit 2d16bdbf4b

View File

@ -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
});
}