fix(my-joy-beta): credentials-same-origin on apollo-client

# Conflicts:
#	packages/my-joy-beta/package.json
This commit is contained in:
Sérgio Ramos 2018-02-20 19:26:09 +00:00
parent cb9ee4644e
commit 17f58e4089

View File

@ -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 = {