diff --git a/frontend/src/api/utils.js b/frontend/src/api/utils.js index 87d6a243..a71a2b0b 100644 --- a/frontend/src/api/utils.js +++ b/frontend/src/api/utils.js @@ -9,6 +9,10 @@ export async function fetchURL(url, opts, auth = true) { let { headers, ...rest } = opts; + if (url.startsWith(baseURL)) { + url = url.substring(baseURL.length); + } + let res; try { res = await fetch(`${baseURL}${url}`, {