From 17f58e408930440ff1d5f37fb2bd5e2264284267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Tue, 20 Feb 2018 19:26:09 +0000 Subject: [PATCH] fix(my-joy-beta): credentials-same-origin on apollo-client # Conflicts: # packages/my-joy-beta/package.json --- packages/my-joy-beta/src/state/store.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/my-joy-beta/src/state/store.js b/packages/my-joy-beta/src/state/store.js index 8a9fe96d..5a62a51b 100644 --- a/packages/my-joy-beta/src/state/store.js +++ b/packages/my-joy-beta/src/state/store.js @@ -18,7 +18,10 @@ const URI = `${REACT_APP_GQL_PROTOCOL}://${REACT_APP_GQL_HOSTNAME}${PORT}/graphq export const client = new ApolloClient({ cache: new InMemoryCache(), - link: new HttpLink({ uri: URI }) + link: new HttpLink({ + credentials: 'same-origin', + uri: URI + }) }); const initialState = {