Skip to content

Commit

Permalink
Merge pull request #143 from Kibibit/feature-add-helmet-for-extra-sec…
Browse files Browse the repository at this point in the history
…urity

[FEATURE] Add helmet for extra security
  • Loading branch information
thatkookooguy authored Jun 20, 2016
2 parents 1e5c91b + 159cc9d commit 40d43ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"colors": "~1.1.2",
"directory-tree": "~0.1.1",
"express": "~4.13.3",
"helmet": "^2.1.1",
"mime-types": "^2.1.11",
"scribe-js": "~2.0.4",
"serve-favicon": "~2.3.0",
Expand Down
5 changes: 5 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

// CALL THE PACKAGES --------------------
var express = require('express'), // call express
helmet = require('helmet'),
config = require('./config'),
path = require('path'),
favicon = require('serve-favicon'), // set favicon
Expand All @@ -13,6 +14,10 @@ var app = express(); // define our app using express
var scribe = require('scribe-js')(); // used for logs
var console = process.console;

// hook helmet to our express app. This adds some protection to each communication with the server
// read more at https://github.com/helmetjs/helmet
app.use(helmet());

colors.enabled = true; //enable colors even through piping.

// create application/json parser
Expand Down

0 comments on commit 40d43ab

Please sign in to comment.