aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-12-09 04:18:44 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-12-09 04:18:48 +0100
commit6c8c15f914cd375da1db5d0cd4d924a86c53d4c1 (patch)
tree86c085b4047491476275b87ac24c00c2df0d4bbe /server.ts
parentf2eb23cd87cf32b8fe545178143b5f49e06a58da (diff)
downloadPeerTube-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.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index f2e589243..8a762a905 100644
--- a/server.ts
+++ b/server.ts
@@ -20,7 +20,7 @@ import * as cli from 'commander'
20process.title = 'peertube' 20process.title = 'peertube'
21 21
22// Create our main app 22// Create our main app
23const app = express() 23const app = express().disable("x-powered-by")
24 24
25// ----------- Core checker ----------- 25// ----------- Core checker -----------
26import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init' 26import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init'