Skip to content

Commit 2deade1

Browse files
committed
Revert fetcher updates
1 parent bb61e1e commit 2deade1

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/libs/fetch.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// @todo Add error handling - Ryan
22
export default async function fetcher(...args) {
3-
const [url, options] = args
4-
5-
const fetchOptions = {
6-
credentials: 'include',
7-
headers: {
8-
'Content-Type': 'application/json',
9-
},
10-
mode: 'no-cors',
11-
...options,
12-
}
13-
14-
const res = await fetch(url, fetchOptions)
3+
const res = await fetch(...args)
154

165
return res.json()
176
}

0 commit comments

Comments
 (0)