Reduce Fingerprinting

As DieselTech#6997 pointed out in Matrix, it is a good idea to reduce
fingerprinting by removing the `X-Powered-By` response header as pointed
out by the Express security best practices:

See http://expressjs.com/en/advanced/best-practice-security.html#reduce-fingerprinting
This commit is contained in:
Lars Kiesow 2023-01-21 23:18:06 +01:00
parent 024d052a7b
commit a1b49f5fcf
No known key found for this signature in database
GPG Key ID: 5DAFE8D9C823CE73

View File

@ -142,6 +142,7 @@ class Server {
const app = express()
const router = express.Router()
app.use(global.RouterBasePath, router)
app.disable('x-powered-by')
this.server = http.createServer(app)