Make sure X-Powered-By header is disabled

This commit is contained in:
Alex Pica 2014-04-21 05:29:01 +03:00
parent bc1bde89c5
commit ee79c4bf5d
1 changed files with 3 additions and 0 deletions

View File

@ -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'