Secure cookies not being sent over localhost #3457
Labels
enhancement
evaluation needed
proposal needs to be validated or tested before fully implementing it in k6
new-http
issues that would require (or benefit from) a new HTTP API
Brief summary
When calling a service on localhost, if cookies are set with
Secure: true
they are not sent in following requests if the connection is over HTTP.As per documentation secure cookies should only be sent over HTTPS except in the case of requests on localhost. See Set-Cookie header documentation.
k6 version
0.47.0
OS
macOS 13
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Run the following k6 script, which sets two cookies on
http://localhost
, one with thesecure
flag set tofalse
and the other totrue
Expected behaviour
As per
Set-Cookie
documentation k6 should output both cookies to the consoleActual behaviour
The actual output to console is only the cookie without the secure flag set to true
The text was updated successfully, but these errors were encountered: