Skip to content

Declare script permissions

Give a script only the context, actions and outside hosts it needs.

Declare context and actions

Use Permissions in the editor, or the script section of tiledash.json in a package. Start with the smallest set and explain each permission in the example.

{  "script": {    "context": ["cap"],    "actions": ["toggle"],    "connect": []  }}

External code and services

Declare libraries for outside code, connect for hosts the script may contact, and images for permitted template image hosts. Never put a private API key in a public widget package. The script cannot access the app’s account cookies or another tile.

Action and browser restrictions

A permitted action still needs a press inside the frame. Sensitive actions ask for confirmation in the app. A read-only share cannot act. Document browser support and the fallback, especially for Safari, iPhone and iPad: script availability depends on frame isolation and what the dashboard contains.