Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Overwriting headers Set-Cookie #598

@Pinegin

Description

@Pinegin

Environment

node: 20.8.1
h3: 1.9.0

Reproduction

await deleteCookie(event, 'test', { domain: example.test })
await deleteCookie(event, 'test', { domain: .example.test })

Describe the bug

It is impossible to delete cookies using the "deleteCookie" method, cookies of the same type but with different parameters

https://github.com/unjs/h3/blob/main/src/utils/cookie.ts#L54-L56

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions