no-cors mode for preview requests (#116)

This commit is contained in:
Brandon Thomas
2024-03-30 12:24:02 -04:00
committed by GitHub
parent fbc914fd7b
commit 2b9e23418e
@@ -11,6 +11,7 @@ const MakeMultipartRequest = (endpoint = "", body: any) => {
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',
@@ -20,4 +21,4 @@ const MakeMultipartRequest = (endpoint = "", body: any) => {
.then(res => res.blob());
}
export default MakeMultipartRequest;
export default MakeMultipartRequest;