Skip to content

Commit

Permalink
Dependencies: Add helmet
Browse files Browse the repository at this point in the history
ryanlelek committed Jun 21, 2024
1 parent e0f560c commit c40484e
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ import logger from 'morgan';
import cookie_parser from 'cookie-parser';
import body_parser from 'body-parser';
import moment from 'moment';
import helmet from 'helmet';
import hogan from 'hogan-express';
import session from 'express-session';
import passport from 'passport';
@@ -85,6 +86,7 @@ function initialize(config) {

// Setup Express
app.use(logger('dev'));
app.use(helmet());
app.use(body_parser.json());
app.use(body_parser.urlencoded({ extended: false }));
app.use(cookie_parser());
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -66,6 +66,7 @@
"extend": "3.0.2",
"fs-extra": "11.2.0",
"glob": "10.4.2",
"helmet": "7.1.0",
"hogan-express": "0.5.2",
"js-yaml": "4.1.0",
"lunr": "2.3.9",

0 comments on commit c40484e

Please sign in to comment.