Skip to content

Commit

Permalink
Fix HTML demo by adding security policy (#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen committed Aug 29, 2024
1 parent b6b2e51 commit 1badccb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion demo/html_demo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import mesop as me


@me.page(path="/html_demo")
@me.page(
security_policy=me.SecurityPolicy(
allowed_iframe_parents=["https://google.github.io"]
),
path="/html_demo",
)
def app():
me.text("Sanitized HTML")
me.html(
Expand Down

0 comments on commit 1badccb

Please sign in to comment.