Add an Allowed Domain
- Open the Char dashboard
- Navigate to Settings → Integration
- Under Allowed Domains, click Add Domain
- Enter the full origin (e.g.,
https://app.example.com) - Click Save
Origin Format
Origins must be complete—scheme, hostname, and port (if non-standard):Common Configurations
Production + staging:localhost and 127.0.0.1 are allowed by default on any port. You don’t need to add them.
Remove a Domain
- Open Settings → Integration
- Find the domain in the Allowed Domains list
- Click the delete icon
- Confirm removal
Troubleshooting
Agent shows authentication error: Check that the origin in your browser’s address bar exactly matches an allowed domain. Common mismatches:- Missing
https://prefix - Including a trailing slash
- Wrong port number
- Subdomain not listed
localhost is allowed automatically, but https://app.example.com must be added explicitly.
CORS errors in console:
The allowed domains list only controls Char authentication, not CORS. If you see CORS errors, check that your server’s CORS configuration permits requests from the Char API.
