Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Please grant clipboard-write permission to iframe of web games

A topic by AlSoKnown created 60 days ago Views: 159 Replies: 2
Viewing posts 1 to 3
(1 edit) (+2)

I develop a web-based game which uses ‘copy savefile as a text to clipboard’ as a method to allow players to share/transfer their savefiles, as well as a tool for bug reporting/reproduction.

It turned out that this feature does not work on Chrome due to lack of clipboard-write permissions in ‘allow’ attribute of iframe tag of the itch.io game page. (See https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API#security_considerations )

I believe this addition will not affect security, since:

  1. Firefox and Safari do not support this permission and just allow clipboard.writeText always
  2. The iframe tag already allows practically everything else.
(+2)

I fully support adding clipboard-write to iframe permissions on Itch.io. Clipboard access is essential for features like savefile export or bug report tools. Chrome blocking this breaks user experience unnecessarily, especially when other browsers allow it by default. If it's opt-in for devs and handled securely, it would boost functionality without compromising trust or safety.

(1 edit)

+1

Even the itch app allows HTML5 projects to use clipboard.