Skip to content

Commit 78ffd7f

Browse files
committed
Fixes #40
1 parent f4d9afa commit 78ffd7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hoc/withUniversalGraphQLDataLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const link = createHttpLink({
1414
// See the use of the "options" when running a graphQL query to specify options per-request at https://www.apollographql.com/docs/react/api/react-hooks/#options
1515
headers: {
1616
'gcms-locale-no-default': false,
17-
'authorization': process.env.GRAPHQL_API_KEY,
17+
'authorization': `Bearer ${process.env.GRAPHQL_API_KEY}`,
1818
},
1919
credentials: 'same-origin', // XXX See https://www.apollographql.com/docs/react/recipes/authentication#cookie
2020
});

0 commit comments

Comments
 (0)