Skip to content

Commit

Permalink
Allow demo app to be iframed by Google Github site (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen authored Jun 3, 2024
1 parent 0bb44d8 commit ff149f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ def create_main_fn(example: Example):
@me.page(
title="Mesop Demos",
path="/" if example.name == "chat" else "/embed/" + example.name,
security_policy=me.SecurityPolicy(
allowed_iframe_parents=["https://google.github.io"]
),
)
def main():
with me.box(
Expand Down

0 comments on commit ff149f9

Please sign in to comment.