Skip to content

Commit

Permalink
Add helmet package and set it up
Browse files Browse the repository at this point in the history
  • Loading branch information
fenris85 committed Mar 21, 2019
1 parent 8ee47b9 commit ade86c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graphql/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const compression = require("compression");
const bodyParser = require("body-parser");
const fs = require('fs');
const _ = require('lodash');
const helmet = require('helmet');

const app = express();
app.use(compression());
app.use(bodyParser.json());
app.use(helmet());

// Rendering options for the index page
app.engine("html", require("ejs").renderFile);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"ejs": "^2.6.1",
"express": "^4.16.3",
"express-rate-limit": "^2.11.0",
"helmet": "^3.16.0",
"jsonpath": "^1.0.0",
"lodash": "^4.17.11",
"pg-promise": "^8.4.3",
Expand Down

0 comments on commit ade86c2

Please sign in to comment.