forked from Kieran/snort
fix: iframe credentialless
This commit is contained in:
parent
9ceb3c705f
commit
d1972542b7
@ -6,6 +6,7 @@ const AppleMusicEmbed = ({ link }: { link: string }) => {
|
|||||||
<iframe
|
<iframe
|
||||||
allow="autoplay *; encrypted-media *; fullscreen *; clipboard-write"
|
allow="autoplay *; encrypted-media *; fullscreen *; clipboard-write"
|
||||||
frameBorder="0"
|
frameBorder="0"
|
||||||
|
credentialless=""
|
||||||
height={isSongLink ? 175 : 450}
|
height={isSongLink ? 175 : 450}
|
||||||
style={{ width: "100%", maxWidth: 660, overflow: "hidden", background: "transparent" }}
|
style={{ width: "100%", maxWidth: 660, overflow: "hidden", background: "transparent" }}
|
||||||
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation"
|
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation"
|
||||||
|
@ -47,6 +47,7 @@ export default function HyperText({ link, depth, showLinkPreview, children }: Hy
|
|||||||
if (youtubeId) {
|
if (youtubeId) {
|
||||||
return (
|
return (
|
||||||
<iframe
|
<iframe
|
||||||
|
credentialless=""
|
||||||
className="-mx-4 md:mx-0 w-max my-2"
|
className="-mx-4 md:mx-0 w-max my-2"
|
||||||
src={`https://www.youtube.com/embed/${youtubeId}`}
|
src={`https://www.youtube.com/embed/${youtubeId}`}
|
||||||
title="YouTube video player"
|
title="YouTube video player"
|
||||||
|
@ -90,6 +90,7 @@ const VideoElement = ({ url }: VideoElementProps) => {
|
|||||||
"md:h-[510px]": !CONFIG.media.preferLargeMedia,
|
"md:h-[510px]": !CONFIG.media.preferLargeMedia,
|
||||||
})}>
|
})}>
|
||||||
<video
|
<video
|
||||||
|
crossOrigin="anonymous"
|
||||||
ref={videoRef}
|
ref={videoRef}
|
||||||
loop={true}
|
loop={true}
|
||||||
muted={!isMobile}
|
muted={!isMobile}
|
||||||
|
@ -10,6 +10,7 @@ const MixCloudEmbed = ({ link }: { link: string }) => {
|
|||||||
<>
|
<>
|
||||||
<br />
|
<br />
|
||||||
<iframe
|
<iframe
|
||||||
|
credentialless=""
|
||||||
title="SoundCloud player"
|
title="SoundCloud player"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="120"
|
height="120"
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
const SoundCloudEmbed = ({ link }: { link: string }) => {
|
const SoundCloudEmbed = ({ link }: { link: string }) => {
|
||||||
return (
|
return (
|
||||||
<iframe
|
<iframe
|
||||||
|
credentialless=""
|
||||||
width="100%"
|
width="100%"
|
||||||
height="166"
|
height="166"
|
||||||
scrolling="no"
|
scrolling="no"
|
||||||
|
@ -3,6 +3,7 @@ const SpotifyEmbed = ({ link }: { link: string }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<iframe
|
<iframe
|
||||||
|
credentialless=""
|
||||||
style={{ borderRadius: 12 }}
|
style={{ borderRadius: 12 }}
|
||||||
src={convertedUrl}
|
src={convertedUrl}
|
||||||
width="100%"
|
width="100%"
|
||||||
|
@ -52,7 +52,7 @@ const TidalEmbed = ({ link }: { link: string }) => {
|
|||||||
{link}
|
{link}
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
return <iframe src={source} style={extraStyles} width="100%" title="TIDAL Embed" frameBorder={0} />;
|
return <iframe src={source} style={extraStyles} width="100%" title="TIDAL Embed" frameBorder={0} credentialless="" />;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default TidalEmbed;
|
export default TidalEmbed;
|
||||||
|
@ -2,7 +2,7 @@ const TwitchEmbed = ({ link }: { link: string }) => {
|
|||||||
const channel = link.split("/").slice(-1);
|
const channel = link.split("/").slice(-1);
|
||||||
|
|
||||||
const args = `?channel=${channel}&parent=${window.location.hostname}&muted=true`;
|
const args = `?channel=${channel}&parent=${window.location.hostname}&muted=true`;
|
||||||
return <iframe src={`https://player.twitch.tv/${args}`} className="w-max" allowFullScreen={true}></iframe>;
|
return <iframe src={`https://player.twitch.tv/${args}`} className="w-max" allowFullScreen={true} credentialless=""></iframe>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default TwitchEmbed;
|
export default TwitchEmbed;
|
||||||
|
@ -3,6 +3,7 @@ const WavlakeEmbed = ({ link }: { link: string }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<iframe
|
<iframe
|
||||||
|
credentialless=""
|
||||||
style={{ borderRadius: 12 }}
|
style={{ borderRadius: 12 }}
|
||||||
src={convertedUrl}
|
src={convertedUrl}
|
||||||
width="100%"
|
width="100%"
|
||||||
|
Loading…
Reference in New Issue
Block a user