hinos-helmet
v1.0.0
Published
hinos-helmet is a wrapper for helmet to work with hinos. It provides important security headers to make your app more secure by default.
Downloads
1
Readme
hinos-helmet
hinos-helmet is a wrapper for helmet to work with hinos. It provides important security headers to make your app more secure by default.
Installation
npm i hinos-helmet -S
Examples
Typescript
Setup in src/index.ts
import helmet from 'hinos-helmet'
import { Server } from 'hinos';
import { route } from 'hinos-route';
import { serve } from 'hinos-serve';
import { cors } from 'hinos-cors';
Server.use(helmet())
Server.use(serve({
'/upload': path.join(__dirname, '..', 'assets', 'upload')
}));
Server.use(cors());
Server.use(route(path.join(__dirname, 'controller')));