Skip to content

Commit 93aa63c

Browse files
committed
Make video crossOrigin undefined if no subtitles
1 parent 9038dfd commit 93aa63c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotcom-rendering/src/components/SelfHostedVideoPlayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export const SelfHostedVideoPlayer = forwardRef(
194194
videoStyles(width, height),
195195
showSubtitles && subtitleStyles(subtitleSize),
196196
]}
197-
crossOrigin="anonymous"
197+
crossOrigin={showSubtitles ? 'anonymous' : undefined}
198198
ref={ref}
199199
tabIndex={0}
200200
data-testid="self-hosted-video-player"

0 commit comments

Comments
 (0)