Skip to content

Cookies not overwriting #8791

@benzikstep

Description

@benzikstep

Expected Behavior

When a Set-Cookie header is sent by server, after a cookie with the same name exists in the client, Insomnia creates a second cookie rather than overwriting the existing cookie.

Actual Behavior

When using insomnia to test api's that deal with login, i've seen a problem when the user sets the auth cookie more than once - Insomnia does not handle cookies properly. The expected behavior is for insomnia to overwrite the cookie, instead it adds it to the cookie store as an additional cookie.

Reproduction Steps

  1. Create a server which sets a different cookie on each request.
  2. Send request 1: cookie A1 will be returned.
  3. Send request 2: (cookie A1 will be sent) - cookie A2 will be returned.
  4. Send request 3: cookie A1 will still be sent

Is there an existing issue for this?

Which sync method do you use?

  • Git sync.
  • Insomnia Cloud sync.
  • Local only

Additional Information

No response

Insomnia Version

11.2.0

What operating system are you using?

macOS

Operating System Version

macos sequoia 15.3.1

Installation method

insomnia website

Last Known Working Insomnia version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-bugBug: general classificationS-unverifiedStatus: Unverified by maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions