no-cors didn't work; undoing

This commit is contained in:
Brandon Thomas
2024-03-30 18:04:45 -04:00
parent 2b9e23418e
commit 757248e722
@@ -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',