From 9b3f289b0e3665c349790dc2562b3df5d1f99bbc Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 7 Jul 2024 18:52:06 +0600 Subject: [PATCH] web/lib/api: don't follow redirects away from api --- web/src/lib/api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/lib/api.ts b/web/src/lib/api.ts index 7892dc8e..d1008377 100644 --- a/web/src/lib/api.ts +++ b/web/src/lib/api.ts @@ -28,6 +28,7 @@ const request = async (url: string) => { const response: CobaltAPIResponse | undefined = await fetch(`${apiURL}/api/json`, { method: "POST", + redirect: "manual", body: JSON.stringify(request), headers: { 'Accept': 'application/json',