From ee79c4bf5dfe9c23d99f7b7911b846427cfaec72 Mon Sep 17 00:00:00 2001 From: Alex Pica Date: Mon, 21 Apr 2014 05:29:01 +0300 Subject: [PATCH] Make sure X-Powered-By header is disabled --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index a2b012e..8d9428e 100644 --- a/index.js +++ b/index.js @@ -23,6 +23,9 @@ function explorer(loopbackApplication, options) { loopbackApplication.docs(options); var app = express(); + + app.disable('x-powered-by'); + app.get('/config.json', function(req, res) { res.send({ discoveryUrl: (options.basePath || '') + '/swagger/resources'