bruno icon indicating copy to clipboard operation
bruno copied to clipboard

The cookie is only sent on the first request.

Open thiagotalma opened this issue 1 year ago • 3 comments

I have checked the following:

  • [X] I use the newest version of bruno.
  • [X] I've searched existing issues and found nothing related to my issue.

Describe the bug

The cookie is only sent on the first request. On all subsequent requests the cookie does not work.

I'm using the cookie to activate Xdebug. It always works only on the first request.

If I close Bruno and open it again, it always works on the first request.

In Postman, it works on all requests normally.

.bru file to reproduce the bug

meta {
  name: Pet
  type: http
  seq: 1
}

post {
  url: {{baseUrl}}/pet
  body: json
  auth: none
}

headers {
  Cookie: XDEBUG_SESSION=XDEBUG_PHPSTORM;
}

body:json {
  [
    {
      "id": 3,
      "active": true
    }
  ]
}

Screenshots/Live demo link

image

thiagotalma avatar Apr 16 '24 21:04 thiagotalma

Hello, everyone.

I really wish I could abandon Postman. But without this fix I can't.

Unfortunately I don't have enough knowledge to create a PR.

thiagotalma avatar Apr 26 '24 14:04 thiagotalma

@helloanoop , please take a look here.

thiagotalma avatar Apr 26 '24 14:04 thiagotalma

I have a issue open #1944. I think behind the scenes this is what the issue is with that also. Same behavior. Request only works once.

Basically not all the cookies are being passed on subsequent requests.

rafeanders avatar Apr 26 '24 20:04 rafeanders

I was also having this issue. I have found a workaround. Go to preferences and uncheck "Store Cookies automatically". You might have to clear the already stored cookies. You can do it by quitting the app and opening it again. Or there is a cookie icon at the bottom left. Click that and clear the required cookies.

subhash983 avatar Jul 07 '24 15:07 subhash983