Fix: starting with Peertube 3.2.0, there is a header X-Frame-Options. Removing it on the iframe route.
This commit is contained in:
parent
31c10621d1
commit
73ed34a2fa
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## ???
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
* Fix: starting with Peertube 3.2.0, there is a header 'X-Frame-Options'. Removing it on the iframe route.
|
||||||
|
|
||||||
## v2.1.3
|
## v2.1.3
|
||||||
|
|
||||||
* Fix: 2.1.0 was in fact correct... Did not work on my preprod env because of... a Livebox bug...
|
* Fix: 2.1.0 was in fact correct... Did not work on my preprod env because of... a Livebox bug...
|
||||||
|
@ -24,6 +24,8 @@ async function initWebchatRouter (options: RegisterServerOptions): Promise<Route
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
router.get('/room/:videoUUID', asyncMiddleware(
|
router.get('/room/:videoUUID', asyncMiddleware(
|
||||||
async (req: Request, res: Response, _next: NextFunction): Promise<void> => {
|
async (req: Request, res: Response, _next: NextFunction): Promise<void> => {
|
||||||
|
res.removeHeader('X-Frame-Options') // this route can be opened in an iframe
|
||||||
|
|
||||||
const settings = await settingsManager.getSettings([
|
const settings = await settingsManager.getSettings([
|
||||||
'chat-use-prosody', 'chat-use-builtin', 'chat-room', 'chat-server',
|
'chat-use-prosody', 'chat-use-builtin', 'chat-room', 'chat-server',
|
||||||
'chat-bosh-uri', 'chat-ws-uri'
|
'chat-bosh-uri', 'chat-ws-uri'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user