Building a custom embedded widget

Technical implementation

Custom widgets are pure iframe with data injected to the name -tag and an postMessage listener allowing data requests and resizing. We utilise a JWT to sign context data with a shared secret, so the custom widget can verify that the widget is in fact in Happeo.

Adding to a page

You can add your custom widget to a page by opening the page edit mode. Then clicking a new widget and clicking your custom widget from the menu.

Examples

What’s Next