Authentication
- Session cookies are HttpOnly and SameSite=Lax; do not read or transplant them using frontend JavaScript.
- Write operations check Origin and usually require both a valid session and appropriate room permissions.
- Do not log passwords, room messages or user session credentials.
- Never treat a Super Admin account as a general integration service account.
CORS and iframe
No unrestricted cross-origin browser CORS API is currently promised. X-Frame-Options and Content-Security-Policy prevent embedding chat pages in external iframes. Prefer room links or a licensed separate installation.
Room data
Reading public room names does not permit copying message histories or administering rooms. Respect consent, privacy and access restrictions.
Production checklist
- Use HTTPS and WSS.
- Set REST timeouts, caching and retry backoff.
- Separate credentials per environment if your own installation includes private integrations.
- Handle 401, 403, 404 and 429 explicitly.
- Keep server secrets outside browser JavaScript.