diff --git a/graphql/server.js b/graphql/server.js index 0d131d8..9c9b5db 100644 --- a/graphql/server.js +++ b/graphql/server.js @@ -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); diff --git a/package.json b/package.json index b283e57..1785846 100644 --- a/package.json +++ b/package.json @@ -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",