mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-14 00:44:58 +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
|
// 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,
|
// parent. For this reason we intentionally don't use allow-same-origin,
|
||||||
// as it would allow the iframe to effectively access the parent window.
|
// 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;
|
iframe.srcdoc = iframeHtml;
|
||||||
|
|
||||||
iframesEl.appendChild(iframe);
|
iframesEl.appendChild(iframe);
|
||||||
|
|
Loading…
Add table
Reference in a new issue