Get started
Allowed origins and CSP
List the sites that may load the widget, and let Iris through your Content Security Policy.
Allowed origins
Section titled “Allowed origins”While Settings → Widget → Allowed origins is empty, any https website can load the widget. The App ID is public, so anyone can copy it to their own site and start chats in your inbox. To limit the widget to your sites, add each origin that loads it: the scheme, the host and the port, with no path. With a filled list, a request from any other origin fails with 403 origin_not_allowed.
https://shop.example.comhttps://*.shop.example.comhttp://localhost:8080app://breakdown-lab- Use
https://. Only a local test origin, such ashttp://localhost:8080, may usehttp://, and it needs a port. https://*.shop.example.comallows every subdomain of a domain you own.- An empty list does not open
http://localhostor custom schemes. Add them as entries. - An app without a web address, such as an Electron app that loads a file, needs no entry: it passes its app key. See App key. A custom-scheme entry, its own scheme and name such as
app://breakdown-lab, still works too.
Content Security Policy
Section titled “Content Security Policy”If your site sends a Content Security Policy, add these sources to it. Settings → Install shows the same list.
script-src https://iris-cdn.playitback.dev;font-src https://iris-cdn.playitback.dev;connect-src https://iris-api.playitback.dev wss://iris-api.playitback.dev https://84f1fe1aab95b9afcdd4992b9c994c31.r2.cloudflarestorage.com;img-src https://iris-api.playitback.dev https://84f1fe1aab95b9afcdd4992b9c994c31.r2.cloudflarestorage.com;media-src https://84f1fe1aab95b9afcdd4992b9c994c31.r2.cloudflarestorage.com;