Unable to use cookies from the cookie jar in a GraphQL request
Is there an existing issue for this?
- [X] I have searched the tracker for existing similar issues and I know that duplicates will be closed
Describe the Issue
If you create an HTTP request and set the body type to GraphQL, you can take advantage of cookies in the cookie jar that come from Postman Interceptor or otherwise without a problem.
If you create a GraphQL request, it does not automatically include the Cookie header, and there doesn't appear to be a way to enable that.
Steps To Reproduce
- Configure Postman Interceptor or manually add a cookie to the cookie jar
- Create a new request of type HTTP
- Set the URL to a GraphQL server on the domain that has the cookie in your jar
- Observe that the Cookie header is automatically added to the Headers section and is populated with the cookies for that domain from the jar.
- Create a new request of type GraphQL
- Set the URL to a GraphQL server on the domain that has the cookie in your jar
- Observe that this time there is no the Cookie header added to the Headers section.
Screenshots or Videos
No response
Operating System
macOS
Postman Version
10.23.10
Postman Platform
Postman App
User Account Type
Signed In User
Additional Context?
No response
Hey @deinspanjer!
The GraphQL client currently doesn't support cookies. We will take note of this as a feature request and update here once it is available.
Hello, is there any news on this feature ? Much needed here since I'm working on a GraphQL API with auth from cookies :(
Also wondering about timing for this feature, thanks!
Waiting for this feature. thanks
Also waiting for this feature. Authenticating via a REST API, setting session data in Redis and storing cookies to identify the session when fetching data via GraphQL.
GraphQL is just a glorified interface for REST API call, I'm looking for this feature too.
This would be needed. However you can still use Headers as a workaround. Just set key as Cookie and add your cookie there.
Def looking for this feature.
I really need this feature too. My GraphQL API handles authentication with cookies, so I frequently forget that Postman doesn't handle cookies for GraphQL, and end up wasting time debugging my code only to find that's why my request isn't working.