diff --git a/demo/button_toggle.py b/demo/button_toggle.py index 514f9128..a8373d6f 100644 --- a/demo/button_toggle.py +++ b/demo/button_toggle.py @@ -14,7 +14,13 @@ def load(e: me.LoadEvent): me.set_theme_mode("system") -@me.page(on_load=load, path="/button_toggle") +@me.page( + on_load=load, + security_policy=me.SecurityPolicy( + allowed_iframe_parents=["https://google.github.io"] + ), + path="/button_toggle", +) def app(): state = me.state(State) diff --git a/demo/date_picker.py b/demo/date_picker.py index c023f7c8..cc1d31d3 100644 --- a/demo/date_picker.py +++ b/demo/date_picker.py @@ -13,7 +13,13 @@ def on_load(e: me.LoadEvent): me.set_theme_mode("system") -@me.page(path="/date_picker", on_load=on_load) +@me.page( + path="/date_picker", + security_policy=me.SecurityPolicy( + allowed_iframe_parents=["https://google.github.io"] + ), + on_load=on_load, +) def app(): state = me.state(State) with me.box( diff --git a/demo/date_range_picker.py b/demo/date_range_picker.py index f9281ac6..37317f9e 100644 --- a/demo/date_range_picker.py +++ b/demo/date_range_picker.py @@ -18,7 +18,13 @@ def on_load(e: me.LoadEvent): me.set_theme_mode("system") -@me.page(path="/date_range_picker", on_load=on_load) +@me.page( + path="/date_range_picker", + security_policy=me.SecurityPolicy( + allowed_iframe_parents=["https://google.github.io"] + ), + on_load=on_load, +) def app(): state = me.state(State) with me.box(