Pavel Ševčík
3 years ago
No known key found for this signature in database
GPG Key ID: D3B8A90B4072D9DB
1 changed files with
5 additions and
3 deletions
-
lib/http-server/http-server.js
|
|
@ -34,12 +34,14 @@ class HttpServer { |
|
|
|
this.app.set('trust proxy', 'loopback') |
|
|
|
|
|
|
|
// Middlewares for json responses and requests logging
|
|
|
|
this.app.use('/static', sirv('../static')); |
|
|
|
this.app.use(HttpServer.setJSONResponse) |
|
|
|
this.app.use(HttpServer.requestLogger) |
|
|
|
this.app.use(HttpServer.setCrossOrigin) |
|
|
|
this.app.use(HttpServer.setConnection) |
|
|
|
this.app.use(helmet(HttpServer.HELMET_POLICY)) |
|
|
|
|
|
|
|
this.app.use('/static', sirv('../static')); |
|
|
|
|
|
|
|
this.app.use(HttpServer.setJSONResponse) |
|
|
|
this.app.use(HttpServer.setConnection) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|