Skip to main content

Sites

Sites define the origins where your Char AI widgets are allowed to be embedded.

What is a Site?

A Site represents a web application or domain where you want to deploy the Char AI widget. Each site has:
  • Name: A friendly identifier for the site
  • Allowed Origins: URLs where the widget can be loaded
  • API Keys: Authentication credentials for widget requests

Creating a Site

1

Navigate to Sites

Go to your Char AI dashboard and select Sites from the sidebar.
2

Add New Site

Click Create Site and enter a descriptive name.
3

Configure Origins

Add the domains where your widget will be embedded:
  • https://yourdomain.com
  • https://app.yourdomain.com
4

Generate API Key

Create an API key to authenticate widget requests.

Allowed Origins

Origins follow the same-origin policy format:
protocol://hostname:port

Valid Origins

  • https://example.com
  • https://app.example.com
  • http://localhost:3000

Invalid Origins

  • example.com (missing protocol)
  • https://example.com/ (trailing slash)
  • https://*.example.com (wildcards not supported)