diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-12-09 04:18:44 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-12-09 04:18:48 +0100 |
commit | 6c8c15f914cd375da1db5d0cd4d924a86c53d4c1 (patch) | |
tree | 86c085b4047491476275b87ac24c00c2df0d4bbe /server.ts | |
parent | f2eb23cd87cf32b8fe545178143b5f49e06a58da (diff) | |
download | PeerTube-6c8c15f914cd375da1db5d0cd4d924a86c53d4c1.tar.gz PeerTube-6c8c15f914cd375da1db5d0cd4d924a86c53d4c1.tar.zst PeerTube-6c8c15f914cd375da1db5d0cd4d924a86c53d4c1.zip |
disable x-powered-by even with csp disabled
follows Express and helmet recommendations
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ import * as cli from 'commander' | |||
20 | process.title = 'peertube' | 20 | process.title = 'peertube' |
21 | 21 | ||
22 | // Create our main app | 22 | // Create our main app |
23 | const app = express() | 23 | const app = express().disable("x-powered-by") |
24 | 24 | ||
25 | // ----------- Core checker ----------- | 25 | // ----------- Core checker ----------- |
26 | import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init' | 26 | import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init' |