Skip to content

Merge set cookie value for same name multiple times #705

@arily

Description

@arily

Environment

Nuxt 3.10.3 with Nitro 2.9.1
Node 20.10.0

Reproduction

setCookie(e, 'session', '123', { httpOnly: true })
// ...
setCookie(e, 'session', '123', { httpOnly: true, maxAge: /* 1m */ 60 * 60 * 24 * 30 })

Describe the bug

will actually set cookie twice:

set-cookie: session=123; Path=/; HttpOnly
set-cookie: session=123; Max-Age=2592000; Path=/; HttpOnly

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions