Graphql-playground: "request.credentials": "include" does not allow sending Cookie header

Created on 17 Sep 2018  路  9Comments  路  Source: graphql/graphql-playground

This issue pertains to the following package(s):

  • [x] GraphQL Playground - Electron App
  • [ ] GraphQL Playground HTML
  • [ ] GraphQL Playground
  • [ ] GraphQL Playground Express Middleware
  • [ ] GraphQL Playground Hapi Middleware
  • [ ] GraphQL Playground Koa Middleware
  • [ ] GraphQL Playground Lambda Middleware

What OS and OS version are you experiencing the issue(s) on?

MacOS 10.13.6

What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?

1.7.0 (homebrew)

What is the expected behavior?

When I update the settings to include property "request.credentials": "include" and I set an HTTP header in the UI like

{
  "Cookie":"xxxx" 
}

I expect to see the Graphql Playground app transmit the Cookie header in the requests it sends.

What is the actual behavior?

No Cookie header is sent regardless of the presence of the above configuration

What steps may we take to reproduce the behavior?

  • change settings in the Graphql Playground electron app to include "request.credentials": "include"
  • set a Cookie header in the "HTTP Headers" pane:
{
  "Cookie":"xxxx" 
}
  • Send a query and observe (eiter logging from the graphql endpoint or on the wire via traffic capture) that no Cookie header is being sent.
  • Change the name of the cookie header, e.g. "Cookie123" and repeat the test, and observe the header is now transmitted as expected.

_Please provide a gif or image of the issue for a quicker response/fix._

Most helpful comment

Hello,
in what version should this be fixed, please?

I see exactly the same behavior on mac with version 1.8.10 (1.8.10.5129)

header with name cookie is is filtered in request from GraphQL Playground.
From my frontend request, I have cookie header set correctly

All 9 comments

This should work in the latest version, sorry for problems. If its still problem reopen please.

Hello,
in what version should this be fixed, please?

I see exactly the same behavior on mac with version 1.8.10 (1.8.10.5129)

header with name cookie is is filtered in request from GraphQL Playground.
From my frontend request, I have cookie header set correctly

Any update on this?

I also got it on 1.8.10. Any chance to reopen this one @thedude42 @huv1k ?

Same here

Same here.

Same here

Same here

Same here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Deepaknathtiwari picture Deepaknathtiwari  路  11Comments

gajus picture gajus  路  20Comments

tuurbo picture tuurbo  路  13Comments

alex996 picture alex996  路  15Comments

tlvenn picture tlvenn  路  15Comments