Skip to content

Commit c0a6564

Browse files
committed
Grant clipboard-write on iframe
1 parent 81884b2 commit c0a6564

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/shaggy-doodles-allow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@turnkey/iframe-stamper": patch
3+
---
4+
5+
Grant iframe `clipboard-write`. Allows clipboard to be cleared after pasting in secrets to import.

packages/iframe-stamper/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ export class IframeStamper {
207207

208208
iframe.id = config.iframeElementId;
209209
iframe.src = config.iframeUrl;
210+
iframe.allow = "clipboard-write"; // Clipboard will clear when pasting in the iframe
210211

211212
this.iframe = iframe;
212213
const iframeUrl = new URL(config.iframeUrl);

0 commit comments

Comments
 (0)