Skip to content

Commit

Permalink
Add allow-forms to video/playlist embed
Browse files Browse the repository at this point in the history
We need it when the video is password protected
  • Loading branch information
Chocobozzz committed Mar 19, 2024
1 parent 302fd93 commit 78e4cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/root-helpers/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 78e4cc3

Please sign in to comment.