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}
|
||||
height='100%'
|
||||
width='100%'
|
||||
referrerPolicy='origin'
|
||||
allow='accelerometer; encrypted-media; gyroscope; picture-in-picture; web-share'
|
||||
allowFullScreen
|
||||
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