mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-04-10 06:29:02 +02:00
Include Authorization header for streaming uploads
This commit is contained in:
parent
2b5fbf3ce3
commit
78c2b560b9
@ -96,7 +96,9 @@ export function FileUpload(props) {
|
||||
if (encrypt) {
|
||||
headers["V-EncryptionParams"] = JSON.stringify(enc.getParams());
|
||||
}
|
||||
|
||||
if (auth) {
|
||||
headers["Authorization"] = `Bearer ${auth}`;
|
||||
}
|
||||
let req = await fetch("/upload", {
|
||||
method: "POST",
|
||||
mode: "cors",
|
||||
|
Loading…
x
Reference in New Issue
Block a user