You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to have the agent to automatically send my cookies to my requests after a successful login. What I don't undersand is that if try to set the cookies manually reading them from the agent itself it just works, but if i just remove the .set("Cookie") it stops working immediately. In my node express application, the very first thing I do is to setup cookieParser. It seems similar to the provided example on agents and cookies. The cookies are set as insecure already. Does the httpOnly flag of the cookies affect to this?
yevon
changed the title
[fix] SuperTest agents does support multiple cookies persist and cookie parser?
[fix] SuperTest agents does support multiple cookies persist and cookie parser? HttpOnly cookies?
Nov 10, 2024
It seems that it was due to using localhost as the domain for cookies, it should be 127.0.0.1 in order to make it to work. It was working with the browser, so I was wondering if the agents should support "localhost" as domain or not.
yevon
changed the title
[fix] SuperTest agents does support multiple cookies persist and cookie parser? HttpOnly cookies?
[fix] SuperTest agents does support multiple cookies persist and cookie parser? Localhost domain cookies
Nov 10, 2024
yevon
changed the title
[fix] SuperTest agents does support multiple cookies persist and cookie parser? Localhost domain cookies
[fix] SuperTest agents not sending cookies for Localhost domain cookies, you must set them to 127.0.0.1
Nov 11, 2024
I'm unable to have the agent to automatically send my cookies to my requests after a successful login. What I don't undersand is that if try to set the cookies manually reading them from the agent itself it just works, but if i just remove the .set("Cookie") it stops working immediately. In my node express application, the very first thing I do is to setup cookieParser. It seems similar to the provided example on agents and cookies. The cookies are set as insecure already. Does the httpOnly flag of the cookies affect to this?
The text was updated successfully, but these errors were encountered: