Skip to content

Support for multiple cookies with the same name from different domains - #113

Open
zachasme wants to merge 4 commits into
pillarjs:masterfrom
zachasme:feature-support-same-name
Open

Support for multiple cookies with the same name from different domains#113
zachasme wants to merge 4 commits into
pillarjs:masterfrom
zachasme:feature-support-same-name

Conversation

@zachasme

@zachasme zachasme commented Sep 5, 2019

Copy link
Copy Markdown

Resolves #88.

I've added a getAll() method instead of adding a multi option to get() such that the return type doesn't depend on input (which will also lead to saner typescript definitions).

The biggest question is how multiple signed cookies with same name should work when one signature is invalid. I went with removing the signature cookie if any of the signature cookies fail to match a key.

What do you think is the best approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for multiple cookies with the same name from different domains

2 participants