Skip to content

Commit

Permalink
set perms on zapp screen iframe (#2177)
Browse files Browse the repository at this point in the history
@rrrliu can you help me test this?

1/ "scan" should allow requesting camera access
2/ "share" should allow write url to clipboard

<img width="434" alt="image"
src="https://github.com/user-attachments/assets/b53b866d-cf81-4ad0-a11e-779fd72463e6">
  • Loading branch information
saurfang authored Nov 13, 2024
1 parent 2f607d4 commit 7746ee7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export function ZappScreen({ url }: { url: string }): ReactNode {
height: "100%"
}}
src={urlWithOptionalParameter.toString()}
allow="camera;microphone;clipboard-read;clipboard-write"
sandbox="allow-downloads allow-same-origin allow-scripts allow-popups allow-modals allow-forms allow-storage-access-by-user-activation allow-popups-to-escape-sandbox"
/>
</>
Expand Down

0 comments on commit 7746ee7

Please sign in to comment.