Skip to main content
The channel connection SDK (@omnizapi/connect) opens the connection flow inside your system using the Public Key. To prevent it from being used on third-party websites, Omni Z-API only opens the SDK on the domains you authorize.

Register the domains

  1. In the dashboard, open Security.
  2. Open the SDK Configuration tab and, in Authorized domains, enter the domain where the SDK will run (for example, app.yourcompany.com).
  3. Click Add and repeat for each domain.
  4. Click Save changes.
Authorized domains in SDK settings

Rules

Each entry allows sites as follows:
  • The * wildcard only works as the entire first label of the domain: *, *.com and a*.yourcompany.com allow nothing.
  • Entries with a username or password (user@host) are rejected.
  • Wildcards and entries without https:// require @omnizapi/connect 1.1.1 or later. With earlier versions, register the exact origin, including the scheme.
  • The Omni Z-API dashboard can always open the SDK, even if it is not in the list.
  • Also register your staging or test domains if you use the SDK there.
The Public Key can stay in the frontend because it only allows connecting channels. Even so, register the domains: that is what prevents another website from using your Public Key.