]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix iframe allow-popups for oembed
authorChocobozzz <me@florianbigard.com>
Tue, 7 Dec 2021 10:06:35 +0000 (11:06 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 7 Dec 2021 10:06:35 +0000 (11:06 +0100)
server/controllers/services.ts

index 8a8a95486071b0b12ef5397e6ac8225da8b70d82..9151e1b04e73b64a9e0e2e10cc43729cb4c1e277 100644 (file)
@@ -98,7 +98,7 @@ function buildOEmbed (options: {
     thumbnailUrl = undefined
   }
 
-  const html = `<iframe width="${embedWidth}" height="${embedHeight}" sandbox="allow-same-origin allow-scripts" ` +
+  const html = `<iframe width="${embedWidth}" height="${embedHeight}" sandbox="allow-same-origin allow-scripts allow-popups" ` +
     `title="${embedTitle}" src="${embedUrl}" frameborder="0" allowfullscreen></iframe>`
 
   const json: any = {