expect-ct
Middleware to set the Expect-CT header
Last updated 6 years ago by evanhahn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install expect-ct 
SYNC missed versions from official npm registry.

Expect-CT middleware

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",
  })
);

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

5 Versions

  • 1.0.0                                ...           6 years ago
  • 0.3.0                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 5
Last Day 1
Last Week 4
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |