Make sure X-Powered-By header is disabled
This commit is contained in:
parent
bc1bde89c5
commit
ee79c4bf5d
3
index.js
3
index.js
|
@ -23,6 +23,9 @@ function explorer(loopbackApplication, options) {
|
||||||
loopbackApplication.docs(options);
|
loopbackApplication.docs(options);
|
||||||
|
|
||||||
var app = express();
|
var app = express();
|
||||||
|
|
||||||
|
app.disable('x-powered-by');
|
||||||
|
|
||||||
app.get('/config.json', function(req, res) {
|
app.get('/config.json', function(req, res) {
|
||||||
res.send({
|
res.send({
|
||||||
discoveryUrl: (options.basePath || '') + '/swagger/resources'
|
discoveryUrl: (options.basePath || '') + '/swagger/resources'
|
||||||
|
|
Loading…
Reference in New Issue