Skip to content

Commit

Permalink
fix: update iframe feature policy
Browse files Browse the repository at this point in the history
This is needed to fix Xblock video play button not working in Chrome for youtube videos due to iframe security policy.
  • Loading branch information
a-asad authored and bradenmacdonald committed Dec 18, 2024
1 parent e505f78 commit 4a80532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/courseware/course/sequence/Unit/ContentIFrame.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import * as hooks from './hooks';
* Changes to it should be vetted by them ([email protected]).
*/
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({
Expand Down

0 comments on commit 4a80532

Please sign in to comment.