fix: include cookie for nav requests

This commit is contained in:
geek 2018-03-26 13:00:56 -05:00 committed by Sérgio Ramos
parent 023e8242b7
commit 30b996fc48
3 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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,