From 30b996fc481006a82be8d3d97d57fd0d02227da2 Mon Sep 17 00:00:00 2001 From: geek Date: Mon, 26 Mar 2018 13:00:56 -0500 Subject: [PATCH] fix: include cookie for nav requests --- packages/my-joy-instances/package.json | 1 - packages/my-joy-navigation/package.json | 1 + packages/my-joy-navigation/src/state/client.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/my-joy-instances/package.json b/packages/my-joy-instances/package.json index c1cdaa35..32da24e9 100644 --- a/packages/my-joy-instances/package.json +++ b/packages/my-joy-instances/package.json @@ -20,7 +20,6 @@ }, "dependencies": { "@manaflair/redux-batch": "^0.1.0", - "apollo": "^0.2.2", "apr-intercept": "^3.0.3", "apr-reduce": "^3.0.3", "bytes": "^3.0.0", diff --git a/packages/my-joy-navigation/package.json b/packages/my-joy-navigation/package.json index 651c8321..5670f19c 100644 --- a/packages/my-joy-navigation/package.json +++ b/packages/my-joy-navigation/package.json @@ -23,6 +23,7 @@ "apollo-link-http": "^1.5.2", "apollo-link-state": "^0.4.0", "apr-intercept": "^3.0.3", + "cross-fetch": "^1.1.1", "emotion": "^8.0.12", "emotion-theming": "^8.0.12", "graphql-tag": "^2.8.0", diff --git a/packages/my-joy-navigation/src/state/client.js b/packages/my-joy-navigation/src/state/client.js index fc46c003..389ef874 100644 --- a/packages/my-joy-navigation/src/state/client.js +++ b/packages/my-joy-navigation/src/state/client.js @@ -16,7 +16,7 @@ const PORT = REACT_APP_GQL_PORT ? `:${REACT_APP_GQL_PORT}` : ''; const URI = `${REACT_APP_GQL_PROTOCOL}://${REACT_APP_GQL_HOSTNAME}${PORT}/navigation/graphql`; const cache = new InMemoryCache(); -const remote = new HttpLink({ uri: URI }); +const remote = new HttpLink({ uri: URI, credentials: 'same-origin' }); const local = withClientState({ cache,