Skip to content

__Host- Cookies are not settable from a script #7452

@joshuawilhelmi

Description

@joshuawilhelmi

I have checked the following:

  • I have searched existing issues and found nothing related to my issue.

This bug is:

  • making Bruno unusable for me
  • slowing me down but I'm able to continue working
  • annoying
  • this feature was working in a previous version but is broken in the current release.

Bruno version

3.1.4

Operating System

macOS 15.6.1

Describe the bug

Bruno ignores cookie set manually when it is prefixed by "__Host".

See the example below

.bru file to reproduce the bug

meta {
name: Fetch bruno website and save __Host cookie
type: http
seq: 10
}

get {
url: https://usebruno.com
body: none
auth: inherit
}

script:post-response {
// This doesn't work
bru.cookies.jar().setCookie('https://usebruno.com', {
key: '__Host-SESSION',
value: '12345',
path: '/',
secure: true,
httpOnly: true
})

// This does
bru.cookies.jar().setCookie('https://usebruno.com', {
key: 'Host-SESSION',
value: '12345',
path: '/',
secure: true,
httpOnly: true
})
}

settings {
encodeUrl: true
timeout: 0
}

Screenshots/Live demo link

Image Image

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions