diff --git a/packages/siaviewnode-client/src/components/Dropzone.tsx b/packages/siaviewnode-client/src/components/Dropzone.tsx index 27fd2149..678b9e5e 100644 --- a/packages/siaviewnode-client/src/components/Dropzone.tsx +++ b/packages/siaviewnode-client/src/components/Dropzone.tsx @@ -16,7 +16,10 @@ function MyDropzone() { const url = API_ENDPOINT + "/siafile" fetch(url, { method: "POST", - body: fd + body: fd, + headers: { + "Access-Control-Allow-Origin": "*" + } }).then(res => { const readableStream = res.body const fileStream = streamSaver.createWriteStream("file.webm")