Skip to content

Collection of middleware to implement various security headers for koa

License

Notifications You must be signed in to change notification settings

RisingStack/koa-helmet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-helmet

Dependency Status Downloads

koa-helmet is a wrapper for helmet to work with koa.

Installation

npm install koa-helmet --save

Usage

Usage is the same as helmet.

Example

var koa = require('koa');
var helmet = require('koa-helmet');
var app = koa();

app.use(helmet());
app.use(function *(){
  this.body = 'Hello World';
});

app.listen(4000);

Versioning

koa-helmet pins to helmet's major version (koa-helmet 0.x locks to helmet 0.x).

About

Collection of middleware to implement various security headers for koa

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%