Requirements
Editor permissions or higher on a document are required to edit app settings.How it works
By default, apps can’t make outbound network requests, such as navigating to another page or website or loading external images — the iframe’s Content Security Policy (CSP) blocks them to prevent data exfiltration. Allowed hosts - enabled by turning on specific app settings - are third-party services that the app author doesn’t control, so they can’t be used as a channel to exfiltrate query data. This is unlike a bring-your-own-key provider where the author could read request logs. The app never gains access to'self', https:, or wildcard origins.
Accessing app settings
To access an app’s settings:- In an app, click Edit to enter draft mode.
- Near the top left corner of the page, click the icon (located next to Code).
Allow map providers
The Allow map providers setting allows maps in your app by enabling it to render tiles from keyless map providers. Along with enabling this setting yourself, the Omni Agent can enable it automatically when you ask it to add a map to your app. When enabled, Omni widens the CSP to permit image and network requests to the following map providers’ tile servers and the CDNs their libraries load from. No additional setup is needed.Safe domains
Safe domains lets you optionally extend the app’s security model by specifying additional trusted hosts for loading images, scripts, stylesheets, fonts, and network connections. By default, apps can load resources from a curated list of trusted CDNs (e.g., Google Fonts, jsDelivr) and Omni’s bundled charting, styling, and utility libraries. These are available regardless of your safe domain configuration.Configuring Safe domains
To configure safe domains for an app:- Open the app’s settings.
- In the Safe domains section, toggle Allow safe domains on.
-
Enter one or more domains in the Safe domains field. Add one domain per line or separate using spaces or commas:
See Domain formats for formatting requirements.
- Click outside the text area to save. The domains are validated when you save.
Disabling Allow safe domains
If you disable Allow safe domains, all external access (excluding map providers if Allow map providers is enabled) for the app will be disabled. Specified domains will be saved and can be re-enabled by toggling the setting back to on.Domain formats
- Valid formats
- Disallowed domain patterns
Safe domains accepts the following formats:
Each domain must:
- Have at least two labels (e.g.,
example.comis valid, butlocalhostorcomalone is not) - Use only lowercase letters, digits, hyphens, dots, and optionally a leading
*.wildcard - Be 253 characters or fewer
- Include a valid port (5 digits or fewer, numeric) if a port is specified
Valid domains
Navigation
Navigation settings let you control whether and where an app can open links, covering both external websites and pages inside Omni. Along with enabling these settings yourself, the Omni Agent can enable these settings automatically when you ask it to add links or navigation to your app.Allow opening links
Allow opening links allows the app to open external links. When enabled, you can also configure the Open external links in a new tab and Allow navigation domains settings. When this setting is enabled but navigation domains aren’t configured, the app can open links to - and send data to - any site. Restrict where it can navigate by turning on Allow navigation domains and listing trusted hosts.Open external links in a new tab
Open external links in a new tab forces external links to open in a new tab, keeping the app on the current page. This is the default, and it applies even if the app requests otherwise. The Allow opening links setting must be enabled to configure this setting.Allow navigation domains
Allow navigation domains limits where the app can open links:- When disabled, the app can open links to any site
- When enabled, the app can only open links to the hosts listed in the Navigation domains field. The Allow opening links setting must be enabled to specify Navigation domains.
- Open the app’s settings.
- Enable Allow opening links.
- Enable Allow navigation domains.
-
In the Navigation domains field, enter one or more hosts. Add one host per line, or separate them with commas or spaces. Wildcards like
*.example.comare allowed:Navigation domains follow the same formatting and validation rules as safe domains. See Domain formats for accepted and disallowed patterns. - Click outside the text area to save.

