Flux Product Docs
  • What is Flux?
  • Guides
    • Creating a Premium Video
    • Creating Your First Site
    • Creating a Countdown
    • Creating a Navigation Bar
    • Creating a Group
    • Custom 404 Page
    • Adding a Favicon to Your Site
    • Adding Videos to Your Site
    • Managing Your Guest List
    • Asset Management
    • Creating Sites from Site Templates
    • Publishing Site Versions
    • Advanced Debugging
  • Fundamentals
    • Key Concepts
    • Sites
    • Guests
    • Environments
      • Show Variables
    • Flows
      • Anatomy of a Node
      • Connecting Nodes and Building Flows
      • Passing Data
      • Scope
      • Interpolation
    • Keyboard Shortcuts
      • Keyboard Shortcuts - Page Editor
    • Animation States
    • Local Variables
    • Groups
  • Use Cases
    • For Designers
    • For Engineers
      • Custom CSS
      • Custom Modules
    • For Event Manager
      • Intercom Integration
  • Documentation
    • FAQ
    • Glossary
    • 🚀Show Controller
      • Modes
    • Domains and Subdomains
      • Hover
      • AWS Route 53
    • Premium Live Channels
    • Basic Video
    • Premium Video
      • AI Generated Subtitles
      • Supported Input Codecs and Containers
      • Supported Language Labels
      • Serverside Forensic Watermarking
    • Flow Nodes
      • Middleware
  • Modules
    • Access Code
    • Audio
    • Button
    • Carousel
    • Chat
    • Checkbox
    • Container
    • Countdown
    • Date
    • Embed
    • Image
    • Intercom
    • Link
    • Lottie
    • Page
    • Meter
    • Modal
    • Photobooth Gallery
    • Open Login
    • QR Code
    • Radio
    • Rich Text
    • Stack
    • Style
    • Spline
    • Switch
    • Text Input
    • Video
  • Template Guides
    • NatGeo FYC
      • Adding a Panel
    • Meow Wolf All Shrimps
  • 🚀Change Logs
    • July 12, 2024
    • June 08, 2024
    • April 26, 2024
    • April 12, 2024
    • March 29, 2024
    • March 15, 2024
    • March 1, 2024
    • September 2022
    • August 2022
    • July 2022
    • June 2022
Powered by GitBook
On this page
  • Properties
  • Target Origin
  • Allow Script Tags
  • Embed Content
  • Nodes
  • Broadcasters
  • Listeners

Was this helpful?

  1. Modules

Embed

Include 3rd party sites and widgets inside Flux sites.

Last updated 1 year ago

Was this helpful?

Allows for the embedding of iframes into a Flux site. Useful for embedding other websites or widgets such as Youtube videos, Discord channels, or other 3rd party sites.

Properties

Target Origin

The target origin is a security feature to ensure Flux only sends messages to <iframe> content with known origins and only broadcasts onReceivedPostMessage for messages received from known origins.

Example Discord Target Origin:

https://discordapp.com

Allow Script Tags

Checkbox to allow Embed Content to contain <script> tags that will be processed and injected into the page. This is disabled by default but may be enabled by content or template authors. Allowing script tags is explicitly opt-in because external scripts can be dangerous for security and can impact page load times in ways Flux can not control. Only ever use scripts from a trusted source.

Embed Content

Script tags are only allowed in the Embed Content property field if the "Allow Script Tags" property is checked.

The content to be embedded into the module. Typically an iframe HTML tag.

Example Discord Embed:

<iframe class="discord" src="https://discordapp.com/widget?id=201798443583143936&theme=dark"/>

Nodes

Broadcasters

Embed:onReceivedPostMessage

Field
Type
Description

Message

string

The body of the Post Message received

Listeners

Embed:SendPostMessage

Field
Type
Description

Message

string

The body of the Post Message to send

Fires when a is received from the embedded site.

When triggered, sends a to the embedded site.

Post Message
Post Message
Embed Module in Editor