0.0.5 • Published 3 years ago

qoq-helmet v0.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

qoq-helmet

Important security headers for qoq based on koa-helmet.

License npm

Installation

yarn add qoq-helmet

Usage

import { WebSlotManager } from 'qoq';
import { helmets, Helmet } from 'qoq-helmet';

// This...
export const webSlots = WebSlotManager.use(new Helmet());

// ...is equivalent to this:
export const webSlots = WebSlotManager.use(helmets.contentSecurityPolicy())
  .use(helmets.dnsPrefetchControl())
  .use(helmets.expectCt())
  .use(helmets.frameguard())
  .use(helmets.hidePoweredBy())
  .use(helmets.hsts())
  .use(helmets.ieNoOpen())
  .use(helmets.noSniff())
  .use(helmets.originAgentCluster())
  .use(helmets.permittedCrossDomainPolicies())
  .use(helmets.referrerPolicy())
  .use(helmets.xssFilter());

Options

@see helmet

0.0.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago