Skip to content
Documentation
Updated 4 minutes to read
Markdown

DashboardPluginSettings - System Parameter

Section titled “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.

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

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.

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
}

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

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...