Option B: script widget
For websites where you control the HTML. The widget renders directly into your page inside an isolated container, so neither your styles nor ours leak across.
<div id="eaif-courses"></div><script src="https://www.edgeaifoundation.org/embed/widget.js" data-partner-id="YOUR_PARTNER_ID"></script>Attributes
Section titled “Attributes”| Attribute | Required | Meaning |
|---|---|---|
data-partner-id |
yes | The partner ID we sent you. |
data-target |
no | Render into a different element ID than eaif-courses. |
How your site is identified
Section titled “How your site is identified”The widget requests the catalog with your page’s Origin header, which browsers send automatically for cross-site requests. The request is accepted when the origin’s hostname is registered for your partner ID. No token is needed.
Next: Platform requirements for the Content-Security-Policy lines your site may need.