Add allow and sandbox attributes to TIDAL Embeds.

This commit is contained in:
Jeremy Karlsson 2024-06-03 09:53:53 +02:00
parent f2f8b6b225
commit 0c90f248fd
No known key found for this signature in database
GPG Key ID: 8BCBF2F9D4C4E422

View File

@ -55,7 +55,7 @@ const TidalEmbed = ({ link }: { link: string }) => {
}
const iframe = (
// eslint-disable-next-line react/no-unknown-property
<iframe src={source} style={extraStyles} width="100%" title="TIDAL Embed" frameBorder={0} credentialless="" />
<iframe src={source} style={extraStyles} width="100%" allow="encrypted-media *; clipboard-write *; clipboard-read *" sandbox="allow-scripts allow-popups allow-forms allow-same-origin" title="TIDAL Embed" frameBorder={0} credentialless="" />
);
return (
<>