web/lib/api: don't follow redirects away from api

This commit is contained in:
wukko 2024-07-07 18:52:06 +06:00
parent a6a51b850a
commit 9b3f289b0e
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -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',