🐛 Fix CORS
This commit is contained in:
@@ -225,7 +225,7 @@ async function downloadAllFiles() {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
const res = await fetch(url, { credentials: 'include' })
|
const res = await fetch(url)
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
throw new Error(`Failed to download ${file.name}: ${res.statusText}`)
|
throw new Error(`Failed to download ${file.name}: ${res.statusText}`)
|
||||||
}
|
}
|
||||||
|
@@ -223,7 +223,7 @@ async function downloadFile() {
|
|||||||
progress.value = undefined
|
progress.value = undefined
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const res = await fetch(fileSource.value, { credentials: 'include' })
|
const res = await fetch(fileSource.value)
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
throw new Error(`Failed to download ${fileInfo.value.name}: ${res.statusText}`)
|
throw new Error(`Failed to download ${fileInfo.value.name}: ${res.statusText}`)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user