disable x-powered-by even with csp disabled

follows Express and helmet recommendations
pull/3428/head
Rigel Kent 2020-12-09 04:18:44 +01:00
parent f2eb23cd87
commit 6c8c15f914
No known key found for this signature in database
GPG Key ID: 5E53E96A494E452F
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ import * as cli from 'commander'
process.title = 'peertube'
// Create our main app
const app = express()
const app = express().disable("x-powered-by")
// ----------- Core checker -----------
import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init'