From 4a80532b8df6c5ed807b139dfe04d0648ebc7888 Mon Sep 17 00:00:00 2001 From: Abdur Rahman Asad Date: Thu, 12 Dec 2024 01:50:41 +0500 Subject: [PATCH] fix: update iframe feature policy This is needed to fix Xblock video play button not working in Chrome for youtube videos due to iframe security policy. --- src/courseware/course/sequence/Unit/ContentIFrame.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/courseware/course/sequence/Unit/ContentIFrame.jsx b/src/courseware/course/sequence/Unit/ContentIFrame.jsx index 7f99e4c172..725d71c2a2 100644 --- a/src/courseware/course/sequence/Unit/ContentIFrame.jsx +++ b/src/courseware/course/sequence/Unit/ContentIFrame.jsx @@ -20,7 +20,7 @@ import * as hooks from './hooks'; * Changes to it should be vetted by them (security@edx.org). */ export const IFRAME_FEATURE_POLICY = ( - 'microphone *; camera *; midi *; geolocation *; encrypted-media *; clipboard-write *' + 'microphone *; camera *; midi *; geolocation *; encrypted-media *; clipboard-write *; autoplay *' ); export const testIDs = StrictDict({