In my React app, I'm displaying cards after looping through an array (so there can theoretically be n
cards).
I want the text displayed in a card to be copied when the user clicks on that card. The issue however, is that the react app is rendered inside an iframe.
The copy functionality works when the app is in an individual tab. However when tried from within an iframe, I run into this error:
Uncaught (in promise) DOMException: Disabled in this document by Feature Policy.
This is linked to this policy change from Google. Is there a way in which I can get this functionality working?
Additional info: The app rendered inside the iframe does not share the same domain as the parent app
Background reading links: