Skip to content

Commit c98aa74

Browse files
authored
Merge pull request #8847 from rlucia/patch-1
fix: credentials and headers belong to HttpLink
2 parents d1792df + 5427b27 commit c98aa74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ra-data-graphql/src/buildApolloClient.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export default (options: Partial<ApolloClientOptions<unknown>>) => {
1515
const {
1616
cache = new InMemoryCache().restore({}),
1717
uri,
18-
link = !!uri ? new HttpLink({ uri }) : undefined,
18+
credentials,
19+
headers,
20+
link = !!uri ? new HttpLink({ uri, credentials, headers }) : undefined,
1921
...otherOptions
2022
} = options;
2123

0 commit comments

Comments
 (0)