ActivityPub-federated video streaming platform using P2P directly in your web browser
Add X-Content-Type-Options: nosniff header
Chocobozzzf24ff76892a2
diff --git a/server/server.ts b/server/server.tsindex 95f5d0f19e..edeecb4974 100644--- a/server/server.ts+++ b/server/server.ts@@ -66,7 +66,7 @@ import { program as cli } from 'commander'import cookieParser from 'cookie-parser'import cors from 'cors'import express from 'express'-import { frameguard } from 'helmet'+import { frameguard, xContentTypeOptions } from 'helmet'import anonymize from 'ip-anonymize'import morgan, { token } from 'morgan'@@ -95,6 +95,8 @@ if (CONFIG.CSP.ENABLED) {app.use(baseCSP)}+app.use(xContentTypeOptions())+if (CONFIG.SECURITY.FRAMEGUARD.ENABLED) {app.use(frameguard({action: 'deny' // we only allow it for /videos/embed, see server/controllers/client.ts