mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(embeds): pass origin to youtube or popular videos won't load
This commit is contained in:
@@ -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}`}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user