fix(embeds): pass origin to youtube or popular videos won't load

This commit is contained in:
plebeius.eth
2024-05-05 12:35:12 +02:00
parent 57fb75d674
commit e91bb587a1
+2 -1
View File
@@ -61,10 +61,11 @@ const YoutubeEmbed = ({ parsedUrl }: EmbedComponentProps) => {
className={styles.videoEmbed} className={styles.videoEmbed}
height='100%' height='100%'
width='100%' width='100%'
referrerPolicy='origin'
allow='accelerometer; encrypted-media; gyroscope; picture-in-picture; web-share' allow='accelerometer; encrypted-media; gyroscope; picture-in-picture; web-share'
allowFullScreen allowFullScreen
title={parsedUrl.href} title={parsedUrl.href}
src={`https://www.youtube-nocookie.com/embed/${youtubeId}`} src={`https://www.youtube.com/embed/${youtubeId}`}
/> />
); );
} }