expect-ct
    Overview
    Documentation
    Insights
    Code
    Contributors
    Dependencies
    Alternatives

expect-ct

Middleware to set the Expect-CT header

0.3.0  •  Published 3 months ago  •  by helmetjs  •  MIT License

Expect-CT

Build Status

The Expect-CT HTTP header tells browsers to expect Certificate Transparency. For more, see this blog post and the article on MDN.

Usage:

const expectCt = require('expect-ct')

// Sets Expect-CT: max-age=123
app.use(expectCt({ maxAge: 123 }))

// Sets Expect-CT: enforce, max-age=123
app.use(expectCt({
  enforce: true,
  maxAge: 123
}))

// Sets Expect-CT: enforce, max-age=30, report-uri="https://example.com/report"
app.use(expectCt({
  enforce: true,
  maxAge: 30,
  reportUri: 'https://example.com/report'
}))
How do you feel about the name Devstore for this site?

Popularity

Weekly Downloads
508.1K
Stars
2

Maintenance

Development

Last ver 3 months ago
Created 3 years ago
Last commit 3 months ago
1 month between commits

Technology

Node version: 12.6.0
5.3K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

2 contributors
Evan Hahn
Maintainer, 33 commits, 1 merges
Works at Airtable
dependabot[bot]
1 commits
Adam Baldwin
Maintainer
Works at npm
dependabot
2 PRs

Tags

helmet
security
express
connect
expect-ct
Ready for the next level?
Join Devstore's founding team to help us build the ultimate open-source app store, work with the latest technologies, and enjoy great culture, impact and autonomy
© 2019 Devstore, Inc.
Devstore helps developers find and use open-source packages, so they can focus on building amazing things