Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mercedesb/useApi
Browse files Browse the repository at this point in the history
  • Loading branch information
mercedesb committed Feb 26, 2020
2 parents 792277f + c14647a commit b911797
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit b911797

Please sign in to comment.