Skip to content

feat: add option allowedCookie for limit cookie parse to an whitelist #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cesco69
Copy link

@cesco69 cesco69 commented Apr 15, 2025

close #126

Parsing a long list of cookies on each request has a performance impact!

This PR introduce an option for limit the cookie parsing on a limit numer of cookies, eg.:

app.use(cookieParser('keyboard cat', {
   allowedCookie: ['myCookie']
}))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

perf: limit cookie parse only on some cookie
1 participant