mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/lib/api: don't follow redirects away from api
This commit is contained in:
parent
a6a51b850a
commit
9b3f289b0e
1 changed files with 1 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue