Removed headers from the RequestUtil.js proxy

This commit is contained in:
Mathias Wagner 2024-02-15 16:40:01 +01:00
parent c7462ae6f2
commit 2d16bdbf4b
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

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