diff --git a/index.js b/index.js index 416edce..fff122a 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,8 @@ async function fetchData(url, method, data) { body: !!data ? JSON.stringify(data) : null, headers: { "Content-Type": "application/json", - Accept: "application/json" + Accept: "application/json", + "Access-Control-Allow-Origin": origin } }) .then(response => {