]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server.ts
Add history page on client
[github/Chocobozzz/PeerTube.git] / server.ts
index 4a2a6ddf554532ca757a5dc463331fa022e7058f..6dff16f46214eb33eec2b4b485ea68ff1d942c92 100644 (file)
--- a/server.ts
+++ b/server.ts
@@ -53,6 +53,9 @@ if (errorMessage !== null) {
 app.set('trust proxy', CONFIG.TRUST_PROXY)
 
 // Security middleware
+import { baseCSP } from './server/middlewares'
+
+app.use(baseCSP)
 app.use(helmet({
   frameguard: {
     action: 'deny' // we only allow it for /videos/embed, see server/controllers/client.ts