Skip to content

Commit

Permalink
fix(graphql): enable playground requests to include credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
ZauberNerd committed Mar 14, 2019
1 parent 3965dc5 commit 4e65a03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/graphql/lib/mock-server-middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ const apolloAppPromise = Promise.resolve(

const server = new ApolloServer({
schema: resolvedSchema,
playground: {
settings: {
'request.credentials': 'same-origin',
},
},
context: context => ({ ...context, config: hopsConfig }),
});

Expand Down

0 comments on commit 4e65a03

Please sign in to comment.