Skip to content

Commit

Permalink
Merge pull request #3577 from owid/iframe-allow
Browse files Browse the repository at this point in the history
enhance(embed): explicitly `allow` share features in iframe snippet
  • Loading branch information
marcelgerber authored May 7, 2024
2 parents f36360a + 01e3f53 commit 213ecfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@ourworldindata/grapher/src/modal/EmbedModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class EmbedModal extends React.Component<EmbedModalProps> {

@computed private get codeSnippet(): string {
const url = this.manager.embedUrl
return `<iframe src="${url}" loading="lazy" style="width: 100%; height: 600px; border: 0px none;"></iframe>`
return `<iframe src="${url}" loading="lazy" style="width: 100%; height: 600px; border: 0px none;" allow="web-share; clipboard-write"></iframe>`
}

@action.bound private onDismiss(): void {
Expand Down

0 comments on commit 213ecfb

Please sign in to comment.