Allow Web Bluetooth and Web Serial within iframes (#2514)

This commit is contained in:
Erik Mejer Hansen 2024-03-19 06:34:53 +01:00 committed by GitHub
parent 91b8152488
commit 269df7b8ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ export function initializeIframeSource(iframe, iframePort, iframeUrl) {
iframe.sandbox =
"allow-scripts allow-same-origin allow-downloads allow-forms allow-modals allow-popups allow-top-navigation";
iframe.allow =
"accelerometer; ambient-light-sensor; camera; display-capture; encrypted-media; fullscreen; geolocation; gyroscope; microphone; midi; usb; xr-spatial-tracking; clipboard-read; clipboard-write";
"accelerometer; ambient-light-sensor; camera; display-capture; encrypted-media; fullscreen; geolocation; gyroscope; microphone; midi; usb; xr-spatial-tracking; clipboard-read; clipboard-write; bluetooth; serial";
iframe.src = url;
});
}