Skip to content

Commit

Permalink
Set credentials: same-origin in GraphQL playground (#6826)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Oct 26, 2021
1 parent ddabdbd commit c723eb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/keystone/src/lib/server/createApolloServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ const _createApolloServerConfig = ({
? apolloConfig?.plugins
: [
playgroundOption
? ApolloServerPluginLandingPageGraphQLPlayground()
? ApolloServerPluginLandingPageGraphQLPlayground({
settings: { 'request.credentials': 'same-origin' },
})
: ApolloServerPluginLandingPageDisabled(),
...(apolloConfig?.plugins || []),
],
Expand Down

0 comments on commit c723eb8

Please sign in to comment.