mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-12-17 13:43:05 +08:00
Allow local network access within iframes (#3107)
This commit is contained in:
parent
73731b7b88
commit
4081d69006
1 changed files with 1 additions and 1 deletions
|
|
@ -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; bluetooth; serial";
|
||||
"accelerometer; ambient-light-sensor; camera; display-capture; encrypted-media; fullscreen; geolocation; gyroscope; microphone; midi; usb; xr-spatial-tracking; clipboard-read; clipboard-write; bluetooth; serial; local-network-access";
|
||||
iframe.src = url;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue