---
title: DashboardPluginSettings System Parameter – Sandbox for HTML Widgets
description: The DashboardPluginSettings system parameter in Nodinite sets the iframe sandbox and Content Security Policy for HTML widgets on the Dashboard and in Monitor Views. Five switches; only AllowScripts is on by default.
---

# DashboardPluginSettings - System Parameter

<sup><span class="nodinite-new-badge">New 7.4.0</span></sup>

**DashboardPluginSettings** is a JSON [System Parameter][System Parameters]. It sets what HTML widgets may do in the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [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.

<h2 id="at-a-glance"><i class="fal fa-table" aria-hidden="true"></i> At a Glance</h2>

| 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][Monitor Views] |
| Takes effect | Within about 15 seconds; no restart needed |
| Status | ✅ Active |
| Since | Nodinite 7.4.0 |

<h2 id="how-it-works"><i class="fal fa-gears" aria-hidden="true"></i> How It Works</h2>

The parameter only matters when your [Product Key][ProductKey] 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 [<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> support](https://support.nodinite.com)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>. 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.

<h2 id="value-format"><i class="fal fa-code" aria-hidden="true"></i> Value Format</h2>

| 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:

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

<h2 id="choosing-a-value"><i class="fal fa-lightbulb" aria-hidden="true"></i> Choosing a Value</h2>

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 |

<aside aria-label="Warning" class="nodinite-note nodinite-note--warning">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-triangle-exclamation"></i> Warning</p>
<div class="nodinite-note__content"><p>Each <code>true</code> 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.</p></div>
</aside>

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>No switch allows frames to other sites. An embedded Power BI report, or any other <code>&lt;iframe&gt;</code> to another site, can't load in a widget.</p></div>
</aside>

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-puzzle-piece" aria-hidden="true"></i> [Custom Dashboard Items][]  
* <i class="fal fa-tv" aria-hidden="true"></i> [Extending Monitor Views][]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [Manage System Parameters][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-gauge" aria-hidden="true"></i> [Dashboard][]  
* <i class="fal fa-key" aria-hidden="true"></i> [ProductKey][]  
* <i class="fal fa-id-card" aria-hidden="true"></i> [Manage License][]  
* <i class="fal fa-globe" aria-hidden="true"></i> [Web Client][]  
* <i class="fal fa-key" aria-hidden="true"></i> [System Parameters][]  
* <i class="fal fa-shield-check" aria-hidden="true"></i> [HTTP Security Headers][] - The Web Client's Content Security Policy  

[Custom Dashboard Items]:https://docs.nodinite.com/getting-started/dashboard/custom-dashboard-items/
[Dashboard]:https://docs.nodinite.com/getting-started/dashboard/overview/
[Extending Monitor Views]:https://docs.nodinite.com/getting-started/monitor/extending-monitor-views/
[HTTP Security Headers]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/hardening/http-security-headers/
[Log View]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Manage License]:https://docs.nodinite.com/administration/settings/manage-license/
[Manage System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/manage-system-parameters/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[ProductKey]:https://docs.nodinite.com/administration/settings/system-parameters/productkey/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/core-services/web-client/overview/