no-cors didn't work; undoing (#117)

This commit is contained in:
Brandon Thomas
2024-03-30 18:05:23 -04:00
committed by GitHub
parent 2b9e23418e
commit 5412db3b8a
@@ -1,17 +1,11 @@
// import GetApiHost from "./GetApiHost";
// const { formatUrl, host = "" } = GetApiHost();
const MakeMultipartRequest = (endpoint = "", body: any) => {
const formData = new FormData();
Object.keys(body).forEach((key) => formData.append(key, body[key]));
// formData.append('source', "video");
return fetch("https://funnel.tailce84f.ts.net/preview/", {
method: 'POST',
mode: 'no-cors', // NB(bt): Only until the server has Allow-Origin headers
credentials: 'include',
headers: {
'Accept': 'application/json',