A koajs middleware to add Expect-CT header
MIT License
A koajs middleware for expect-ct header
npm:
npm install koa-expect-ct
yarn:
yarn add koa-expect-ct
const expectCT = require('koa-expect-ct');
const app = new Koa();
const options = {
maxAge: 60,
enforce: true,
reportUri: 'https://reports.com'
};
// add expectCT middleware
app.use(expectCT(options));
app.use(function (ctx) {
ctx.body = { foo: 'bar' };
});
Name | Website |
---|---|
Shaun Warman | https://shaunwarman.com |