Skip to content

Commit b911797

Browse files
committed
Merge branch 'master' of https://github.com/mercedesb/useApi
2 parents 792277f + c14647a commit b911797

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ async function fetchData(url, method, data) {
99
body: !!data ? JSON.stringify(data) : null,
1010
headers: {
1111
"Content-Type": "application/json",
12-
Accept: "application/json"
12+
Accept: "application/json",
13+
"Access-Control-Allow-Origin": origin
1314
}
1415
})
1516
.then(response => {

0 commit comments

Comments
 (0)