
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
express-secure-cookie
Advanced tools
An opinionated replacement for express' res.cookie method.
Automatically detects whether to set secure flag dependent on request protocol. Defaults httpOnly to true.
npm install express-secure-cookie
var app = require('express')();
app.use(require('express-secure-cookie'));
app.get('*', function (req, res) {
res.cookie('foo', 'bar');
// this cookie will now have its `secure` flag set appropriately for
// the protocol of the inbound request - i.e. http/s
// the cookie will also have its `httpOnly` flag set to true meaning
// it cannot be read by `document.cookies`
});
...
app.listen(8080);
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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.