question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GraphQL Playground settings do not get set

See original GitHub issue
const server = new ApolloServer({
  playground: {
    settings: {
      'request.credentials': 'include',
    }
  },
  ...otherServerSettings
);

Go to your GraphQL Playground route, and notice that the settings are just default settings.

related to github.com/prisma/graphql-playground/issues/741

Adding this here as there appears to be a copy of graphql-playground-html under the @apollographql namespace, and will possibly need to be updated when they fix this.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

3reactions
capajcommented, Oct 15, 2018

I have the same issue using the latest apollo-server-express 2.1.0

2reactions
thomsbgcommented, Feb 21, 2020

I am still seeing this issue and have no workaround at the moment other than to wire up graphql-playground or graphiql manually. I am using apollo-server-express@2.10.1 and @apollographql/graphql-playground-html@1.6.24. Not being able to set 'request.credentials': 'include' means that this is unusable for my API which uses a session cookie for authentication.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GraphQL Playground - Apollo GraphQL Docs
Configuring Playground​​ The Apollo Server constructor contains the ability to configure GraphQL Playground with the playground configuration option. The options ...
Read more >
Complete guide to GraphQL Playground - LogRocket Blog
GraphQL Playground can be used like GraphiQL to send queries with variables. ... Here, we use the “QUERY VARIABLES” tab to add the...
Read more >
How to make GraphQL playground not display selected options?
In the dropdown I'd like to see only the options I still can select, not the ones already selected. Here's my index.ts const...
Read more >
GraphQL.Server.Ui.Playground 7.2.0 - NuGet
Also you can get all preview versions from GitHub Packages. ... Although not recommended, you may set up a controller action to execute...
Read more >
graphql-playground-middleware-express Code Examples - Snyk
To help you get started, we've selected a few graphql-playground-middleware-express examples, based on popular ways it is used in public projects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found