5 ms·
Yes. We use <iframe>s with the sandbox attribute (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox https://developer.mozilla.org/e
by jashkenas 9y ago
Yes. We use <iframe>s with the sandbox attribute (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox https://developer.mozilla.org/en-US/docs/Web/HTML/Element/if...) to uh ... sandbox away the running JavaScript.
If you inspect them, you'll see that those frames are hosted on observableusercontent.com instead of observablehq.com.
It's a similar security model to how raw files on GitHub are served from githubusercontent.com.
- ontouchstart 9y agoI wrote a simple notebook: https://beta.observablehq.com/@ontouchstart/test https://beta.observablehq.com/@ontouchstart/test to confirm that the code is running in an iframe from host https://static.observableusercontent.com https://static.observableusercontent.com