expect-ct

Middleware to set the Expect-CT header

MIT 5 个版本
安装
npm install expect-ct
yarn add expect-ct
pnpm add expect-ct
bun add expect-ct
README

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",
  })
);
版本列表
1.0.0 2020-08-02
0.3.0 2019-09-01
0.2.0 2019-05-05
0.1.1 2018-05-16
0.1.0 2017-05-04