Merge pull request #147 from BrowserBox/puter-143-Safari-embedded-cookie-permissions

Update UIWindow.js to permit Safari to store cookies for embedded apps
This commit is contained in:
Nariman Jelveh 2024-03-20 21:42:27 -07:00 committed by GitHub
commit 726f0111ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -296,7 +296,7 @@ async function UIWindow(options) {
${options.iframe_url ? 'src="'+ html_encode(options.iframe_url)+'"' : ''} ${options.iframe_url ? 'src="'+ html_encode(options.iframe_url)+'"' : ''}
${options.iframe_srcdoc ? 'srcdoc="'+ html_encode(options.iframe_srcdoc) +'"' : ''} ${options.iframe_srcdoc ? 'srcdoc="'+ html_encode(options.iframe_srcdoc) +'"' : ''}
allow = "accelerometer; camera; encrypted-media; gamepad; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen;" allow = "accelerometer; camera; encrypted-media; gamepad; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen;"
sandbox="allow-forms allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation allow-downloads allow-presentation"></iframe>`; sandbox="allow-forms allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation allow-downloads allow-presentation allow-storage-access-by-user-activation"></iframe>`;
} }
// custom body // custom body
else if(options.body_content !== undefined){ else if(options.body_content !== undefined){
@ -3265,4 +3265,4 @@ document.addEventListener('scroll', function (event) {
} }
}, true); }, true);
export default UIWindow; export default UIWindow;