mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
no-cors mode for preview requests (#116)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user