From ae761c8d85176d4c192c472ae5496b4a7bf1790e Mon Sep 17 00:00:00 2001 From: Eddie Wang Date: Tue, 3 Dec 2019 16:28:05 -0500 Subject: [PATCH] access control --- packages/siaviewnode-client/src/components/Dropzone.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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")