Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser sandbox: Use srcdoc where possible #39

Open
corrideat opened this issue Jun 7, 2024 · 0 comments
Open

Browser sandbox: Use srcdoc where possible #39

corrideat opened this issue Jun 7, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@corrideat
Copy link
Member

corrideat commented Jun 7, 2024

The browser sandbox currently uses an <iframe> with a blob: URL. While this works, it requires allowing blob: in the parent's CSP. Using srcdoc would avoid this.

Two potential challenges to this are:

  1. Two initialisation keys are passed to the iframe via the src URL.
  2. The document would be pretty large. The current URL approach avoid this.
@corrideat corrideat self-assigned this Jun 7, 2024
@corrideat corrideat added the enhancement New feature or request label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant