Allowed origins
Choose which servers your anfra BI Cloud organization's data apps may load code from and send requests to
A data app can load scripts, styles, fonts or images from another server, or send requests to it, only if that server's origin is allowed. Admins manage the list in Settings → Organization → Data apps, under Allowed origins.
The list has two parts:
- Built in: what every data app may use without anything added, such as the SDK's own CDNs. Each row says what apps may use it for: scripts, styles, fonts, images or requests.
- Added for your organization: the origins you allow beyond those, up to 20.
Where the list comes from
The list starts as your project's own: apps.allow_origins in .anfra/config.yml, which anfra publish sends with the project. See Allowing another origin.
An Admin can change it on the organization. The change is an override: it stays across later publishes, until you click Use the repo's list. The line under the list says which one is in effect, and who changed it.
A publish that changes apps.allow_origins while the organization overrides it still publishes, and warns you that the change takes no effect there. Only Admins can publish a change to it. See Permissions.
Add or remove an origin
Type the origin, such as https://cdn.example.com, and click Add. Each entry is an https:// origin with nothing after it. To remove one, click its trash icon.
Each change is saved at once, and applies to every member the next time they load an app.
An origin you add can run code beside your readers' data and receive it. Add only servers you trust.
If an app loads from an origin the organization doesn't allow, it's still published, but it can't load from that origin until the origin is allowed.