mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-20 21:04:17 +08:00
Allow downloads inside JS output iframe (#931)
This commit is contained in:
parent
5110f85e73
commit
2f55b87171
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ const JSOutput = {
|
|||
// Note that we use `srcdoc`, so the iframe has the same origin as the
|
||||
// parent. For this reason we intentionally don't use allow-same-origin,
|
||||
// as it would allow the iframe to effectively access the parent window.
|
||||
iframe.sandbox = "allow-scripts";
|
||||
iframe.sandbox = "allow-scripts allow-downloads";
|
||||
iframe.srcdoc = iframeHtml;
|
||||
|
||||
iframesEl.appendChild(iframe);
|
||||
|
|
Loading…
Reference in a new issue