- 4 minutes to read

DashboardPluginSettings - System Parameter

New 7.4.0

DashboardPluginSettings is a JSON System Parameter. It sets what HTML widgets may do in the Nodinite Web Client: the Custom Dashboard Items on the Dashboard, and the widgets in Extending Monitor Views. The switches control whether scripts run, and whether a widget may load scripts, images, fonts, and stylesheets from other sites or call them.

At a Glance

Property Value
Key DashboardPluginSettings
Data type json
Default {"AllowScripts":true,"AllowInlineScripts":false,"AllowExternalScripts":false,"AllowExternalContent":false,"AllowExternalCalls":false}
Read by Web Client
Applies to Dashboard widgets and Monitor View widgets
Takes effect Within about 15 seconds; no restart needed
Status ✅ Active
Since Nodinite 7.4.0

How It Works

The parameter only matters when your Product Key includes the DashboardPlugins feature (Custom Dashboard). Without it, the Web Client shows no HTML widgets (the widget page answers 403), whatever this parameter says. To get the feature, contact Nodinite support. Licence changes are made in Manage License.

With the feature, the Web Client writes the widget HTML, as it is, into a page of its own and shows that page in a sandboxed iframe with a Content Security Policy. Nothing in the HTML is rewritten or removed: the browser blocks what the policy forbids. This parameter opens parts of that policy. All Dashboard widgets share one frame; a Monitor View widget gets a frame of its own.

What a widget can always use: HTML markup, inline style attributes, and the Web Client's own stylesheets and scripts (Bootstrap, Font Awesome, Angular, Chart.js, moment). What stays blocked whatever you set: <object> elements, and iframes to other sites, for example a Power BI embed. An iframe to the Web Client's own address does load.

Value Format

Property Type Default Meaning when true
AllowScripts boolean true Scripts run inside the widget frame, so the Web Client's Angular directives work, for example the Log View counter, and the frame grows to fit its content. When false, the frame runs no script at all: static HTML only, at a fixed height of 500 px.
AllowInlineScripts boolean false Scripts written in the widget HTML itself may run, and eval is allowed. Works only with AllowScripts.
AllowExternalScripts boolean false The widget may load JavaScript files from CDNs or other sites. Works only with AllowScripts.
AllowExternalContent boolean false The widget may load images, fonts, and stylesheets from other sites. Embedded data: images and fonts, and inline styles, work without it.
AllowExternalCalls boolean false The widget may call APIs on other sites.

Calls from a widget to the Web API run with a reduced, read-only set of the user's permissions, so a widget can't change data even with scripts on.

The default value lets a widget run the Web Client's own scripts, for example a Log View counter through the internal Web API, while keeping everything from other sites blocked:

{
  "AllowScripts": true,
  "AllowInlineScripts": false,
  "AllowExternalScripts": false,
  "AllowExternalContent": false,
  "AllowExternalCalls": false
}

Choosing a Value

Start from the default and open only what a widget needs:

Widget AllowScripts AllowInlineScripts AllowExternalScripts AllowExternalContent AllowExternalCalls
Static HTML announcements and environment badges Either (false gives a fixed 500 px frame) ❌ No ❌ No ❌ No ❌ No
Log View counters through the internal Web API ✅ Yes ❌ No ❌ No ❌ No ❌ No
A widget with its own inline script ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
A widget that shows images or fonts from another site ✅ Yes ❌ No ❌ No ✅ Yes ❌ No

Warning

Each true widens what widget HTML can do in your users' browsers. Deploy only widget files you have reviewed, and keep wide configurations to test environments with trusted content.

Note

No switch allows frames to other sites. An embedded Power BI report, or any other <iframe> to another site, can't load in a widget.

Next Steps