title: Is it possible to define the HTTP headers for the GraphQL Playground that comes with Apollo Server?
body: <p>I want to define some http headers for the GraphQL Playground, to be enabled by default and/or always. Essentially, I want to add:</p>
  <pre><code>&quot;apollographql-client-name&quot;: &quot;playground&quot;
  &quot;apollographql-client-version&quot;: &quot;yada-yada&quot;
  </code></pre>
  <p>to be able to distinguish requests from the playground from any other requests on Apollo Studio. What's the best way?</p>
  <p>By GraphQL Playground I refer to the one run by Apollo, the one documented here: <a href="https://www.apollographql.com/docs/apollo-server/testing/graphql-playground/" rel="noreferrer">https://www.apollographql.com/docs/apollo-server/testing/graphql-playground/</a></p>
  <p>My current ApolloServer config looks something like this:</p>
  <pre><code>let apolloServerExpressConfig: ApolloServerExpressConfig = {
    schema: schema,
    playground: {
      settings: {
        &quot;request.credentials&quot;: &quot;include&quot;,
      },
    },
  }
  </code></pre>
  <p>If I add tabs to it in an attempt to define the headers, like this:</p>
  <pre><code>let apolloServerExpressConfig: ApolloServerExpressConfig = {
    schema: schema,
    playground: {
      settings: {
        &quot;request.credentials&quot;: &quot;include&quot;,
      },
      tabs: [{
        headers: {
          &quot;apollographql-client-name&quot;: &quot;playground&quot;,
          &quot;apollographql-client-version&quot;: &quot;yada-yada&quot;,
        },
      }],
    },
  }
  </code></pre>
  <p>the GraphQL playground no longer restores all tabs with their queries when reloading the page, which is very useful. I think there's some automatic tab management that gets removed as soon as you define tabs. I'm happy to have default headers defined for new tab creation, it's ok if those headers are exposed to the client.</p>
  <p>My app already defines header, so, I can differentiate between the app and anything else that queries it, but I want to differentiate between my app, playground and anything else (the latter group should be empty).</p>