Removed headers from the RequestUtil.js proxy
This commit is contained in:
parent
c7462ae6f2
commit
2d16bdbf4b
@ -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
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user