We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f1eb4 commit 6d668a9Copy full SHA for 6d668a9
index.js
@@ -9,9 +9,9 @@ const apiGet = async ({ path }) => {
9
try {
10
const config = {
11
method: 'get',
12
- headers: new Headers({
13
- Authorization: `Bearer ${netlifyToken}`,
14
- }),
+ headers: {
+ 'Authorization': `Bearer ${netlifyToken}`,
+ },
15
};
16
const response = await fetch(new URL(path, apiUrl).toString(), config);
17
return response.data;
0 commit comments