From 78e4cc30c535c2acf0bb7b001882179500c1c589 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Mar 2024 15:27:59 +0100 Subject: [PATCH] Add allow-forms to video/playlist embed We need it when the video is password protected --- client/src/root-helpers/video.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/root-helpers/video.ts b/client/src/root-helpers/video.ts index eec00ce0e..4b1a5b51b 100644 --- a/client/src/root-helpers/video.ts +++ b/client/src/root-helpers/video.ts @@ -16,7 +16,7 @@ function buildVideoOrPlaylistEmbed (options: { iframe.src = embedUrl iframe.frameBorder = '0' iframe.allowFullscreen = true - iframe.sandbox.add('allow-same-origin', 'allow-scripts', 'allow-popups') + iframe.sandbox.add('allow-same-origin', 'allow-scripts', 'allow-popups', 'allow-forms') if (responsive) { const wrapper = document.createElement('div')