Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit ef395c6

Browse files
authored
Merge pull request #77 from BuildFire/iframe-allow-list
feat: Add allow list to iframe
2 parents 4ef7742 + 806cf02 commit ef395c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/control/content/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
</div>
127127
<div class="note" ng-if="data.content.view === viewType.NATIVE_IN_APP && data.content.viewSubtype === viewSubtype.NATIVE_WEBVIEW">
128128
Native Webview is a new feature that works around iFrame issues. If the iFrame option isn’t working, try using Native Webview instead.
129-
<div class="bold margin-top-twenty">Note: This feature will only work for apps with builds submitted to Apple App Store and Google Play Store after the 5, August 2025. For older builds the app will default to "In Popup Window" option.</div>
129+
<div class="bold margin-top-twenty">Note: This feature will only work for apps with builds submitted to Apple App Store and Google Play Store after 5, August 2025. For older builds the app will default to "In Popup Window" option.</div>
130130
</div>
131131
<div class="radio radio-primary radio-block">
132132
<input id="external" type="radio" ng-model="data.content.view"

src/widget/widget.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ const renderiFrame = (props) =>{
151151

152152
let iFrame = window.document.createElement('iframe');
153153
iFrame.id = 'webviewIframe';
154+
iFrame.allow = "autoplay; camera; microphone; geolocation; fullscreen; picture-in-picture";
154155
iFrame.src = props.url;
155156
iFrame.scrolling = props.isIOS ? 'yes' : 'auto';
156157
iFrame.style.height = '100%';

0 commit comments

Comments
 (0)