access control
This commit is contained in:
parent
4bfcde3ed7
commit
ae761c8d85
|
@ -16,7 +16,10 @@ function MyDropzone() {
|
||||||
const url = API_ENDPOINT + "/siafile"
|
const url = API_ENDPOINT + "/siafile"
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: fd
|
body: fd,
|
||||||
|
headers: {
|
||||||
|
"Access-Control-Allow-Origin": "*"
|
||||||
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
const readableStream = res.body
|
const readableStream = res.body
|
||||||
const fileStream = streamSaver.createWriteStream("file.webm")
|
const fileStream = streamSaver.createWriteStream("file.webm")
|
||||||
|
|
Reference in New Issue