-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Clipboard API example iframe - permission policy error #35862
Comments
I didn't see it as it is not present in all examples but there is a note about Chromium browsers :
However, I let this issue open as the problem is also in Firefox. |
Can you please try pressing Play and seeing what happens if you run it using the playground? |
Thanks @OnkarRuikar ! |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/read
What specific section or headline is this issue about?
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/read#examples
What information was incorrect, unhelpful, or incomplete?
The examples set in the Clipboard API don't work, when copying an image as indicated in the doc to paste it, nothing happens, only errors are thrown.
These demos are presented through an Iframe which causes permission policy issues.
What did you expect to see?
The examples are to work correctly when copying and pasting the image and no errors are to be thrown.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
OS
Linux Ubuntu 22.04
Browsers
Google Chrome
127.0.6533.72
The error appears in the
DevTools
console and the iframe.Firefox
130.0
The error appears directly in the Iframe itself
Error: Clipboard read operation is not allowed.
MDN metadata
Page report details
en-us/web/api/clipboard/read
The text was updated successfully, but these errors were encountered: