For the complete documentation index, see llms.txt. This page is also available as Markdown.

Iframe

Embed a web page in your app.

Content security

In order for an embedded web page to load in the Iframe component, you need to add the origin to Frame Targets under Content security within a given environment configuration. The origin consists of the URL scheme (http:// or https://) and full domain of the hosting page. For example, to embed a video from YouTube you would specify https://www.youtube.com as the value.

Properties

Title

A title for the embedded content. Screen readers use it to identify the frame.

Sandbox

Apply restrictions to what the content in the iframe can do. If you select this checkbox, a list of restrictions will be revealed (see list below). To lift a particular restriction, you must select the appropriate checkbox. If you do not lift any restrictions, all restrictions will apply.

The following restrictions can be configured. For information about how each of these restrictions work, see the <iframe> documentation on MDN.

  • Top nav

  • Top nav on click

  • Forms

  • Scripts

  • Same origin

  • Popups

  • Pointer lock

URL

The source URL of the web page to embed. See Content security.

Referrer policy

Indicates which referrer to send when fetching the frame's resources. When set to None, the browser's default will be used.

Options:

  • no-referrer

  • no-referrer-when-downgrade

  • origin

  • origin-when-cross-origin

  • same-origin

  • strict-origin

  • strict-origin-when-cross-origin

  • unsafe-url

See the MDN documentation for more information on each option.

Last updated

Was this helpful?