Skip to content

Cookie name with slash #590

@czebe

Description

@czebe

Describe the bug
Cookie name with slash / character is escaped to %2F
Eg. user/123=foo becomes user%2F123=foo

I believe the forward slash character is allowed in the cookie key.

It's unclear why you're passing key here as the converter expects a single parameter:
value = converter.write(value, key)

And on the next line:

key = encodeURIComponent(key)

Perhaps it would be better to have:
key = converter.write(key)

Expected behavior
Cookie name preserves the original forward slash character.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions