From 57c2d72e21be2b3537164e13540a8c59db2239b7 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Tue, 3 Sep 2024 14:24:58 -0400 Subject: [PATCH] Update UIWindow.js --- src/gui/src/UI/UIWindow.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/src/UI/UIWindow.js b/src/gui/src/UI/UIWindow.js index f495debd..f9069c71 100644 --- a/src/gui/src/UI/UIWindow.js +++ b/src/gui/src/UI/UIWindow.js @@ -313,6 +313,9 @@ async function UIWindow(options) { style="${!options.has_head ? ' height: 100%;' : ''}">`; // iframe, for apps if(options.iframe_url || options.iframe_srcdoc){ + let allow_str = `camera; encrypted-media; gamepad; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; fullscreen;`; + if(window.co_isolation_enabled) + allow_str += ' cross-origin-isolated;'; // `;