
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
connect-cookies
Advanced tools
cookies and keygrip based cookie middleware for connect/express.
var cookies = require('connect-cookies');
var connect = require('connect');
var app = connect();
app.use(cookies());
app.use(function(req, res){
var views = req.cookies.get('views') || 0;
req.cookies.set('views', ++views);
res.end(views + ' views');
});
app.listen(3000);
Adds an instance of cookies to request and response as req.cookies
and res.cookies
. See its readme for api methods.
Pass an array of keys or a keygrip object to enable secure cookies.
$ npm install connect-cookies
MIT
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.