fix: iframe credentialless
This commit is contained in:
parent
9ceb3c705f
commit
d1972542b7
@ -6,6 +6,7 @@ const AppleMusicEmbed = ({ link }: { link: string }) => {
|
||||
<iframe
|
||||
allow="autoplay *; encrypted-media *; fullscreen *; clipboard-write"
|
||||
frameBorder="0"
|
||||
credentialless=""
|
||||
height={isSongLink ? 175 : 450}
|
||||
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"
|
||||
|
@ -47,6 +47,7 @@ export default function HyperText({ link, depth, showLinkPreview, children }: Hy
|
||||
if (youtubeId) {
|
||||
return (
|
||||
<iframe
|
||||
credentialless=""
|
||||
className="-mx-4 md:mx-0 w-max my-2"
|
||||
src={`https://www.youtube.com/embed/${youtubeId}`}
|
||||
title="YouTube video player"
|
||||
|
@ -90,6 +90,7 @@ const VideoElement = ({ url }: VideoElementProps) => {
|
||||
"md:h-[510px]": !CONFIG.media.preferLargeMedia,
|
||||
})}>
|
||||
<video
|
||||
crossOrigin="anonymous"
|
||||
ref={videoRef}
|
||||
loop={true}
|
||||
muted={!isMobile}
|
||||
|
@ -10,6 +10,7 @@ const MixCloudEmbed = ({ link }: { link: string }) => {
|
||||
<>
|
||||
<br />
|
||||
<iframe
|
||||
credentialless=""
|
||||
title="SoundCloud player"
|
||||
width="100%"
|
||||
height="120"
|
||||
|
@ -1,6 +1,7 @@
|
||||
const SoundCloudEmbed = ({ link }: { link: string }) => {
|
||||
return (
|
||||
<iframe
|
||||
credentialless=""
|
||||
width="100%"
|
||||
height="166"
|
||||
scrolling="no"
|
||||
|
@ -3,6 +3,7 @@ const SpotifyEmbed = ({ link }: { link: string }) => {
|
||||
|
||||
return (
|
||||
<iframe
|
||||
credentialless=""
|
||||
style={{ borderRadius: 12 }}
|
||||
src={convertedUrl}
|
||||
width="100%"
|
||||
|
@ -52,7 +52,7 @@ const TidalEmbed = ({ link }: { link: string }) => {
|
||||
{link}
|
||||
</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;
|
||||
|
@ -2,7 +2,7 @@ const TwitchEmbed = ({ link }: { link: string }) => {
|
||||
const channel = link.split("/").slice(-1);
|
||||
|
||||
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;
|
||||
|
@ -3,6 +3,7 @@ const WavlakeEmbed = ({ link }: { link: string }) => {
|
||||
|
||||
return (
|
||||
<iframe
|
||||
credentialless=""
|
||||
style={{ borderRadius: 12 }}
|
||||
src={convertedUrl}
|
||||
width="100%"
|
||||
|
Loading…
x
Reference in New Issue
Block a user