Skip to content

Commit 81fb703

Browse files
Sandbox the iframe.
This isn't particularly effective with the demo that loads the local simulator as it's the same origin but useful for copy/paste of this code with a real deployment URL.
1 parent c70d15d commit 81fb703

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/demo.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ <h1>MicroPython-micro:bit simulator example embedding</h1>
7272
title="Simulator"
7373
frameborder="0"
7474
scrolling="no"
75+
sandbox="allow-scripts allow-same-origin"
7576
></iframe>
7677
<div id="sensors" class="column"></div>
7778
</div>

0 commit comments

Comments
 (0)