Jan 3, 2026

Security basics for embedded widgets

Domain allowlist

Only allow the widget to load on approved domains.

CSRF protection

Protect dashboard actions (saving widgets, settings) from cross-site request forgery.

Rate limiting

Throttle public message endpoints to reduce abuse and cost.

Safe headers

Avoid blocking embeds globally; instead scope iframe restrictions to /app and /admin.