Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Clipboard Write Failed in Pyre xNFT #4304

Open
birdmanmandbir opened this issue Mar 21, 2024 · 0 comments
Open

[Bug] Clipboard Write Failed in Pyre xNFT #4304

birdmanmandbir opened this issue Mar 21, 2024 · 0 comments

Comments

@birdmanmandbir
Copy link

The error in browser console is:

Uncaught (in promise) DOMException: Failed to execute 'writeText' on 'Clipboard': The Clipboard API has been blocked because of a permissions policy applied to the current document. See https://goo.gl/EuHzyv for more details.
    at onClick (https://pyre.helius.xyz/_next/static/chunks/pages/index-78298e5fb06d9dce.js:1:16122)
    at Object.eU (https://pyre.helius.xyz/_next/static/chunks/framework-2c79e2a64abdb08b.js:9:14912)
image

This is not an issue with Pyre; I opened Pyre using the xNFT, but the outer iframe did not have the allow="clipboard-read; clipboard-write" attribute set, so the Pyre copy function cannot be used within the xNFT iframe.
Reference: https://stackoverflow.com/questions/61401384/can-text-within-an-iframe-be-copied-to-clipboard

Enable clipboard writes for xnfts by ph101pp · Pull Request #2601 · coral-xyz/backpack don't know why this pull request didn't take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant