Embed chart partner integration
Headlight embeds the household chart in your app via a cross-origin iframe onembed.withheadlight.com. Your browser sends chart data directly into the iframe with postMessage. Headlight servers never receive names, trusts, or relationship data.
Quickstart
- Provision an API key with the
embed:chartpermission. - Mint a short-lived token from your server:
- Mount the iframe from the pinned embed version and post the render message after
ready:
/chart/v0.1.0/index.html). Do not load /chart/latest.
Sandbox attribute
Use exactlysandbox="allow-scripts allow-same-origin". Do not add allow-top-navigation or allow-popups.
Token role
The token is for metering and licensing. Framing is enforced by the embed CSPframe-ancestors directive, not by the token.