mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-22 03:51:33 +00:00
311 B
311 B
cookieParser()
Parses the Cookie header field and populates req.cookies
with an object keyed by the cookie names. Optionally you may enabled
signed cookie support by passing a secret string.
app.use(express.cookieParser())
app.use(express.cookieParser('some secret'))