Hello, I developed a password generator for my company with next js, my company wants me to integrate it in the wix site, so I found no other solution than to try to do it with an iFrame.
Everything works except the “copier” button that allows you to copy to the clipboard the password. I have this error that appears in the console:
"Uncaught (in promise) DOMException: The Clipboard API has been blocked because of a permissions policy applied to the current document. See Deprecating Permissions in Cross-Origin Iframes - The Chromium Projects for more details. "
I did these tests on this test site: https://ptarradas0.wixsite.com/lazarsoft/blank
I did a lot of research but none of the solutions I found worked.
Here’s how I did it on wix side :
