aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-07 11:06:35 +0100
committerChocobozzz <me@florianbigard.com>2021-12-07 11:06:35 +0100
commit6e14e40053961cf0b2f55710847f21a3e1b5b627 (patch)
tree754f82e0f27f64b6208e06bdb25c71dfb4ad4e3e /server
parentae9809a7d021fcaf01ee482a9c6c59fdd50125a6 (diff)
downloadPeerTube-6e14e40053961cf0b2f55710847f21a3e1b5b627.tar.gz
PeerTube-6e14e40053961cf0b2f55710847f21a3e1b5b627.tar.zst
PeerTube-6e14e40053961cf0b2f55710847f21a3e1b5b627.zip
Fix iframe allow-popups for oembed
Diffstat (limited to 'server')
-rw-r--r--server/controllers/services.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/services.ts b/server/controllers/services.ts
index 8a8a95486..9151e1b04 100644
--- a/server/controllers/services.ts
+++ b/server/controllers/services.ts
@@ -98,7 +98,7 @@ function buildOEmbed (options: {
98 thumbnailUrl = undefined 98 thumbnailUrl = undefined
99 } 99 }
100 100
101 const html = `<iframe width="${embedWidth}" height="${embedHeight}" sandbox="allow-same-origin allow-scripts" ` + 101 const html = `<iframe width="${embedWidth}" height="${embedHeight}" sandbox="allow-same-origin allow-scripts allow-popups" ` +
102 `title="${embedTitle}" src="${embedUrl}" frameborder="0" allowfullscreen></iframe>` 102 `title="${embedTitle}" src="${embedUrl}" frameborder="0" allowfullscreen></iframe>`
103 103
104 const json: any = { 104 const json: any = {