host_permissions in the manifest for any external domains they communicate with. By default, the Composite SDK sends data to prod.alb.us.api.composite.com, which requires adding this domain to your manifest:
host_permissions triggers a permission re-approval dialog for all existing users. By routing through your own domain, you can avoid this disruption.
Choose Your Setup
Custom Domain
Configure a subdomain via the Composite dashboard using DNS records. Recommended - no server setup required.
Cloudflare Workers
Use Cloudflare Workers to proxy requests at the edge.
AWS CloudFront
Route53 DNS with CloudFront CDN distribution.
Reverse Proxy
Nginx, Apache, Caddy, or any custom reverse proxy.
How It Works
Instead of sending analytics directly to Composite’s API, requests are routed through your domain:SDK Configuration
Once your custom domain or proxy is set up, configure the SDK:Self-Hosted Proxy Requirements
If using Cloudflare, AWS, or a reverse proxy (not the dashboard Custom Domain option), your proxy must:- Forward requests to
https://prod.alb.us.api.composite.comwith the path intact - Preserve headers - Pass through
X-Forwarded-For,X-Forwarded-Proto, and client IP - Use HTTPS - All production traffic must be encrypted