Skip to content

Commit 73b7e95

Browse files
committed
update header
1 parent 0b16902 commit 73b7e95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/iotex-react-block-producers/src/apollo-client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ import JsonGlobal from "safe-json-globals/get";
88

99
const state = isBrowser && JsonGlobal("state");
1010

11-
export const createWebBpApolloClient = (uri: string) =>
11+
export const createWebBpApolloClient = (uri: string, clientId: string = "") =>
1212
new ApolloClient({
1313
ssrMode: !isBrowser,
1414
link: new HttpLink({
1515
uri,
16-
fetch
16+
fetch,
17+
headers: { "x-iotex-client-id": clientId }
1718
}),
1819
cache: isBrowser
1920
? new InMemoryCache().restore(state.webBpApolloState)

0 commit comments

Comments
 (0)