Webview embedding
Webview embeds an HTTPS page in a sandboxed iframe.
Attributes
Default
Allow:
Sandbox only accepts the safe allowlist; allow-same-origin, allow-top-navigation, and allow-popups-to-escape-sandbox are never exposed. Example:
Link behavior
Cross-origin iframe clicks cannot be intercepted by the parent, so there is no iframe parameter that makes links open in the system browser:target="_self": navigates inside the iframe.target="_blank": controlled by thePopupssandbox token; withoutPopups, no popup opens.- To force external links into the system browser, use a backend proxy that rewrites the page, or a native Webview with a navigation hook; a plain iframe cannot do it safely.
Security boundaries
Srcmust be HTTPS and its host must be confirmed in the editor.- The iframe uses
sandbox="allow-scripts allow-forms allow-popups allow-downloads"and neverallow-same-origin, so it cannot access the launcher page; popups also stay sandboxed. file:,data:, and local paths are rejected.- Sites may block embedding through
X-Frame-Optionsor CSP; useOpenUrlto open them externally. - Dynamic
Srchosts must still be confirmed in the widgethosts, or the frame will not render.
Layout
Webview is a fixed-height block. Let the outer Container clip or scroll; do not rely on the iframe to resize the widget.