Skip to content

sandbox markup #69

Closed
Closed
@smeijer

Description

@smeijer

Just like #68, we need to create a sandbox for the markup.

Currently, it's possible to add a <meta http-equiv="refresh" content="1; URL=http://evil.corp"> to the HTML markup, and trigger a full page refresh.

This shouldn't be possible.

We should render the markup in an iframe with the proper restrictions. (See #68). It's quite easy to render the markup (with the srcdoc attribute). But we also need to inject the custom scrollbars, and tailwind styling. That's what will consume the most time of this ticket.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions