fix: include cookie for nav requests
This commit is contained in:
parent
023e8242b7
commit
30b996fc48
@ -20,7 +20,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@manaflair/redux-batch": "^0.1.0",
|
"@manaflair/redux-batch": "^0.1.0",
|
||||||
"apollo": "^0.2.2",
|
|
||||||
"apr-intercept": "^3.0.3",
|
"apr-intercept": "^3.0.3",
|
||||||
"apr-reduce": "^3.0.3",
|
"apr-reduce": "^3.0.3",
|
||||||
"bytes": "^3.0.0",
|
"bytes": "^3.0.0",
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
"apollo-link-http": "^1.5.2",
|
"apollo-link-http": "^1.5.2",
|
||||||
"apollo-link-state": "^0.4.0",
|
"apollo-link-state": "^0.4.0",
|
||||||
"apr-intercept": "^3.0.3",
|
"apr-intercept": "^3.0.3",
|
||||||
|
"cross-fetch": "^1.1.1",
|
||||||
"emotion": "^8.0.12",
|
"emotion": "^8.0.12",
|
||||||
"emotion-theming": "^8.0.12",
|
"emotion-theming": "^8.0.12",
|
||||||
"graphql-tag": "^2.8.0",
|
"graphql-tag": "^2.8.0",
|
||||||
|
@ -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 URI = `${REACT_APP_GQL_PROTOCOL}://${REACT_APP_GQL_HOSTNAME}${PORT}/navigation/graphql`;
|
||||||
|
|
||||||
const cache = new InMemoryCache();
|
const cache = new InMemoryCache();
|
||||||
const remote = new HttpLink({ uri: URI });
|
const remote = new HttpLink({ uri: URI, credentials: 'same-origin' });
|
||||||
|
|
||||||
const local = withClientState({
|
const local = withClientState({
|
||||||
cache,
|
cache,
|
||||||
|
Loading…
Reference in New Issue
Block a user