Website embed
The script tag
Section titled “The script tag”<script src="https://share.plunk.io/embed.js" data-key="sk_••••" data-surface="com"></script>| Attribute | Notes |
|---|---|
data-key |
Your Visualizer App site key |
data-surface |
com (COM/COL Visualizer), sectional (Sectional Builder) or roomplanner (Room Planner) |
data-height |
Optional starting height in px (default 720). The frame then follows the app’s reported height automatically. |
GET /embed?key=&surface=
Section titled “GET /embed?key=&surface=”The iframe fallback for site builders that strip scripts. Point a plain <iframe> at it:
<iframe src="https://share.plunk.io/embed?key=sk_••••&surface=sectional" width="100%" height="720" style="border:0"></iframe>The response carries a per-key Content-Security-Policy: frame-ancestors header listing the key’s registered domains (and their subdomains), so the browser itself refuses to frame your app anywhere else. A key with no registered origins embeds anywhere. Site keys only: a device key here returns 403.
Related
Section titled “Related”Was this helpful?
Still stuck? Contact support and include the job or page you were on.