fix: iframe credentialless
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Kieran 2024-01-19 23:58:46 +00:00
parent 9ceb3c705f
commit d1972542b7
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
9 changed files with 9 additions and 2 deletions

View File

@ -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"

View File

@ -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"

View File

@ -90,6 +90,7 @@ const VideoElement = ({ url }: VideoElementProps) => {
"md:h-[510px]": !CONFIG.media.preferLargeMedia,
})}>
<video
crossOrigin="anonymous"
ref={videoRef}
loop={true}
muted={!isMobile}

View File

@ -10,6 +10,7 @@ const MixCloudEmbed = ({ link }: { link: string }) => {
<>
<br />
<iframe
credentialless=""
title="SoundCloud player"
width="100%"
height="120"

View File

@ -1,6 +1,7 @@
const SoundCloudEmbed = ({ link }: { link: string }) => {
return (
<iframe
credentialless=""
width="100%"
height="166"
scrolling="no"

View File

@ -3,6 +3,7 @@ const SpotifyEmbed = ({ link }: { link: string }) => {
return (
<iframe
credentialless=""
style={{ borderRadius: 12 }}
src={convertedUrl}
width="100%"

View File

@ -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;

View File

@ -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;

View File

@ -3,6 +3,7 @@ const WavlakeEmbed = ({ link }: { link: string }) => {
return (
<iframe
credentialless=""
style={{ borderRadius: 12 }}
src={convertedUrl}
width="100%"