google / google/playground-elements

Partially sandbox preview iframe

Open
#226 0 comments 0 reactions 0 assignees View on GitHub
Needs Discussion
Dominant language
TypeScript
Stars
648
Forks
61
PR merge metrics
No merged PRs in 30d

Description

We can't fully sandbox playground iframes (since the whole point is that they execute code), but it would probably be good to at least include some sandbox protections. For example, maybe we shouldn't allow downloads, because somebody could share a Playground link that initiates a download of a malicious binary.

https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-sandbox

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.