mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3532] [bug]: set-cookie in response headers not working #1205
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xshadowlegendx on GitHub (Nov 10, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3532
Originally assigned to: @CuriousCorrelation on GitHub.
Is there an existing issue for this?
Current behavior
I use hoppscotch cloud with proxy interceptor to call to my backend server and for login endpoint, the server return refresh and fingerprint httponly cookies and after successful login hoppscotch only shows 1 set cookie response, the issue is same as this one and also subsequent request did not send the cookie as well, I tried testing this with postman from the web, and did not configure anything I can call login endpoint and the response show both cookies and also subsequent request will also send those cookies along
Steps to reproduce
you can try this endpoint of my test server on both hoppscotch and postman, postman will just works while hoppscotch did not correctly fold those multiple cookies and did not send them with subsequent request as well
Environment
Production
Version
Cloud
@liyasthomas commented on GitHub (Nov 10, 2023):
Cookie capturing is not available in the Hoppscotch web app.
Download Hoppscotch Desktop App to manage Cookies.
@xshadowlegendx commented on GitHub (Nov 10, 2023):
hello @liyasthomas I also tried the desktop app one also same behavior
@liyasthomas commented on GitHub (Nov 10, 2023):
Sorry for the inconvenience, as of today, you've to manually add the cookie string to the domain. You can follow the instructions in the cookies documentation to manually add cookies.
The ability to auto magically set-cookies from response headers is coming soon in Hoppscotch Desktop App. Thank you for your patience. Keeping this issue ticket open to track feature progress.
@felipebontempo commented on GitHub (Mar 7, 2024):
Sorry for the inconvenience, but maybe my problem is exactly this:
Below are two images, one is how Postman returns and how hoppscotch returns.
The problem is that hoppscotch is missing a "Set-cookie", there should be two, and they are exactly the same call in both tools.
What will be the problem?
I'm sending it here precisely because I think it's a problem with the tool, correct me if I'm wrong.
@felipebontempo commented on GitHub (Mar 8, 2024):
I just tested it on the Bruno API, both values come in the "set-cookie" variable, I believe there is a data cut in Hoppscoth
@DarkDonnerGunther commented on GitHub (Aug 22, 2024):
Is here any update? I need to save cookies automatically to use them as request.
@CIenthusiast commented on GitHub (Aug 27, 2024):
How is this not fixed already. This is a must-have basic for any api tool.
I get that you could technically disable security for your local development or you could just copy it manually to your cookie-store. Who tf does that?
@Paper-Folding commented on GitHub (Aug 27, 2024):
I found an alternative way, just set accessToken and refreshToken into env variables in your authentication api using hoppscotch's "test" tab, and use env value in cookie header with
accessToken=<<accessToken>>;refreshToken=<<refreshToken>>(I'm using jwt authentication).My simple test script to do that:
The shortcoming is, you have to add this cookie header for each subsequent authentication required requests.
@CIenthusiast commented on GitHub (Aug 27, 2024):
Nice job. I already looked into the Pre-Request scripts to automate it myself. Just saying that if Hoppscotch wants to be the Postman-Killer it needs this badly. My team wanted to switch due to the problematic privacypolicy of Postman and this is in our way.
@devNull2and1 commented on GitHub (Aug 27, 2024):
Dude, wanted to say the same.
@Paper-Folding commented on GitHub (Aug 27, 2024):
And since Hoppscotch is written in electron, and "test" block is written in js, you can use
console.login test block, and values will show in Hoppscotch's dev tool, for deugging purpose.@wicol commented on GitHub (Oct 14, 2024):
I can't find anything called dev tool. How do I look at console output from the test script when using the desktop app?
@allen-liaoo commented on GitHub (Oct 17, 2024):
Has the feature of automatically setting cookies from response headers been implemented on the desktop yet? I'm looking to replace postman with this but this is unusable without automatic cookie setter and auth custom redirect_uri
@community-release commented on GitHub (Dec 6, 2024):
Is there any updates on this ?
@ysomad commented on GitHub (Dec 16, 2024):
Is there any plans on implementing it soon?
@khanhquocnguyen commented on GitHub (Jan 24, 2025):
Any update on this? This is a must have for every api tool
@perevernihata commented on GitHub (Jan 25, 2025):
This issue is exactly the reason we are not able to switch from postman
@miku4j commented on GitHub (Feb 3, 2025):
This is diabolical
@hoaxnerd commented on GitHub (Feb 3, 2025):
Any update on this ?
@thiagocavalcanti commented on GitHub (Feb 14, 2025):
Thanks, this idea solves the issue opened of setting the cookie into next requests, however in my pw.response.headers is still returning only 1 set-cookie header :(
@Paper-Folding commented on GitHub (Feb 14, 2025):
this script just needs modifying to adapt to your implementation
@khanhquocnguyen commented on GitHub (Mar 19, 2025):
A year passed and this issue still be there?
@lucasfoussier commented on GitHub (Mar 26, 2025):
+1 This feature would be highly appreciated.
In the case of an API that uses token-based authentication with the token stored in an HTTP-only cookie, it's not possible to use techniques involving Authorization headers (for security reasons).
In the web version of Hoppscotch, this works because the browser acts as the cookie manager and automatically sends the token with subsequent authenticated requests.
Unfortunately, in the desktop version, the only way to authenticate while respecting the API's design is to manually extract the token from the Set-Cookie response header and add it to Hoppscotch's cookie manager. This becomes tedious, especially when dealing with frequently expiring tokens.
@kawpii commented on GitHub (Mar 26, 2025):
Just found out this, this is really necessary.
@amishratnasthapit commented on GitHub (Mar 28, 2025):
This is the last feature I need to migrate my company to Hoppscotch. All our APIs now use Server Side Cookie and without this feature using Hoppscotch is very brutal.
@FerreiraAdrien commented on GitHub (Apr 14, 2025):
Same as above, this is the last feature I need in Hoppscotch before I can fully migrate. If you have any roadmap or estimated timeline for it, that would be really helpful and a big time-saver.
@amnbcw commented on GitHub (May 22, 2025):
Wow. This is still not implemented? Jeez
@rjmcloudh commented on GitHub (May 28, 2025):
Any update?
@makkmarci13 commented on GitHub (Jun 5, 2025):
Any update?
@srkhost commented on GitHub (Jun 5, 2025):
Any update?
@peem041045 commented on GitHub (Jun 24, 2025):
Any update?
@liyasthomas commented on GitHub (Jun 24, 2025):
Originally posted by @liyasthomas in #5188
@CIenthusiast commented on GitHub (Jun 25, 2025):
Maybe you should consider a bounty to encourage people to commit.
Nothing changed the last 2 years, nothing will change in the next 2 years.
And IMO this should be a top priority. In my case there is no use for hoppscotch unless this functionality is implemented.
@Gybk commented on GitHub (Sep 18, 2025):
@lucasfoussier commented on GitHub (Sep 25, 2025):
Hello everyone, do we have any updates regarding this issue?
@liyasthomas commented on GitHub (Sep 25, 2025):
This issue will be fixed in next release candidate scheduled for end of month.
@arthartn commented on GitHub (Sep 30, 2025):
Hello everyone, has this been resolved in the latest version 2025.9.0 ?
We tried logging in (on our localhost) using the desktop app (2025.9.0) on Mac, and the cookie was returned successfully.
However, when trying to get the authentication status afterwards (the same or another tab - both GET requests), the app (presumably) fails to send the cookie to the server, and we get 'Not authorized' (as before), although the cookie is there and not expired, thus, should return the logged-in user.
Are there any settings to be changed/updated to make this work (automatically) ?
@liyasthomas commented on GitHub (Sep 30, 2025):
This issue ticket has two main parts:
The first issue has been resolved in the latest release. We are actively working towards resolving the second issue. This issue is not specific to the desktop app but affects web applications in general. It may involve changes to both backend and frontend components, which we are working towards implementing.
I will keep this ticket open until the functionality to send cookies along with requests for the app is available.
@mathew2103 commented on GitHub (Jan 15, 2026):
More than 2 years since this issue was opened, please look into fixing this