Trusted origin

Learn how to manage your application's trusted origins.

Trusted origins are the domains you explicitly authorize to interact with our services on behalf of your application.

This authorization is enforced through Cross Origin Resource Sharing (CORS), a browser security mechanism that prevents unauthorized domains from making requests to our APIs.

Why trusted origins matter

Without proper CORS configuration, browsers will block requests from unauthorized domains, preventing them from:

  • Tracking events and user behavior
  • Fetching personalized content
  • Accessing our client-side APIs

By maintaining a list of trusted origins, you ensure that only domains you control can interact with your application's data and services, protecting against unauthorized access and potential security breaches.

Examples of trusted origins

Here are some examples of valid origins and their typical use cases:

OriginUse caseOptions
https://example.comProduction domainDefault
https://staging.example.comStaging environmentDefault
https://app.example.comSpecific subdomainDefault
http://localhost:3000Local developmentPort and allow insecure HTTP
https://example.com:8080Custom portPort only
https://*.example.comAll subdomainsInclude subdomains

When adding an origin, you only specify the domain, omitting the protocol (e.g., example.com). To allow insecure HTTP or specify a port, use the corresponding options in the origin settings.

View trusted origins

To see the list of authorized domains for your application:

  1. Scroll down to the Trusted origins section.

  2. Review the list of authorized domains and their configurations.

Add trusted origins

To authorize a new domain for your application:

  1. Scroll down to the Trusted origins section.

  2. Click Add origin.

  3. Enter the domain without the protocol (e.g., example.com).

  4. Optionally, specify a port if your application uses a non-standard port.

  5. Configure additional options:

    • Allow any subdomain - Allow all subdomains (e.g., *.example.com)
    • Allow insecure HTTP - Enable HTTP protocol in addition to HTTPS (e.g., allow both http://example.com and https://example.com)
  6. Click Save to apply the changes.

Edit trusted origins

After adding an origin, you can modify its options but not the domain itself. To change the domain, you must delete the existing origin and create a new one.

To edit an origin's options:

  1. Locate the origin in the Trusted origins list.

  2. Click Options (), then select Edit.

  3. Update the desired options.

  4. Click Save to apply the changes.

Remove trusted origins

To remove an authorized domain:

  1. Scroll down to the Trusted origins section.

  2. Find the domain you want to remove.

  3. Click Options (), then click Delete origin.

  4. Confirm the deletion.