diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-17 11:34:36 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-18 10:14:23 +0100 |
commit | c3b937916711136cb1ce974f769205439a3d2e04 (patch) | |
tree | a476c661480fa866a90bb40b7d1f36c4e22e391c /server/controllers | |
parent | 3f9c4955af81702591a6eeb2069f99faf0d2814d (diff) | |
download | PeerTube-c3b937916711136cb1ce974f769205439a3d2e04.tar.gz PeerTube-c3b937916711136cb1ce974f769205439a3d2e04.tar.zst PeerTube-c3b937916711136cb1ce974f769205439a3d2e04.zip |
Remove CSP for embed
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/client.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/controllers/client.ts b/server/controllers/client.ts index f9bbedc92..dc3ff18fc 100644 --- a/server/controllers/client.ts +++ b/server/controllers/client.ts | |||
@@ -2,7 +2,7 @@ import * as express from 'express' | |||
2 | import { join } from 'path' | 2 | import { join } from 'path' |
3 | import { root } from '../helpers/core-utils' | 3 | import { root } from '../helpers/core-utils' |
4 | import { ACCEPT_HEADERS, STATIC_MAX_AGE } from '../initializers/constants' | 4 | import { ACCEPT_HEADERS, STATIC_MAX_AGE } from '../initializers/constants' |
5 | import { asyncMiddleware, embedCSP } from '../middlewares' | 5 | import { asyncMiddleware } from '../middlewares' |
6 | import { buildFileLocale, getCompleteLocale, is18nLocale, LOCALE_FILES } from '../../shared/models/i18n/i18n' | 6 | import { buildFileLocale, getCompleteLocale, is18nLocale, LOCALE_FILES } from '../../shared/models/i18n/i18n' |
7 | import { ClientHtml } from '../lib/client-html' | 7 | import { ClientHtml } from '../lib/client-html' |
8 | import { logger } from '../helpers/logger' | 8 | import { logger } from '../helpers/logger' |
@@ -21,7 +21,6 @@ clientsRouter.use('/video-channels/:nameWithHost', asyncMiddleware(generateVideo | |||
21 | 21 | ||
22 | clientsRouter.use( | 22 | clientsRouter.use( |
23 | '/videos/embed', | 23 | '/videos/embed', |
24 | embedCSP, | ||
25 | (req: express.Request, res: express.Response) => { | 24 | (req: express.Request, res: express.Response) => { |
26 | res.removeHeader('X-Frame-Options') | 25 | res.removeHeader('X-Frame-Options') |
27 | res.sendFile(embedPath) | 26 | res.sendFile(embedPath) |