Widget CSP Overview

Last modified: April 1, 2024

1 Introduction

Currently, certain Mendix pluggable widgets are not fully compliant with strict content security policy (CSP). Some of these widgets require access to third party domains. By allowing access to these domains, these widgets can still follow allowlist CSP.

2 Setup

For information on setting up your application’s CSP, see the Content Security Policy guide.

3 Widgets

The following widgets are not fully compliant with strict CSP. See the widgets’ documents below for additional information and setup instructions to enable CSP:

3.1 Charts

You can enable allowlist CSP for Charts by including these directives:

1
style-src 'self' 'unsafe-inline';

3.2 Color Picker

You can enable allowlist CSP for Color Picker by including these directives:

1
style-src 'self' 'unsafe-inline';

3.3 HTML/JavaScript Snippet

For information on HTML/JavaScript Snippet widget CSP configurations, see HTML/JavaScript Snippet CSP.

3.4 Maps

For information on Maps widget CSP configurations, see Maps CSP.

3.5 Rich Text

You can enable allowlist CSP for Rich Text by including these directives:

1
style-src 'self' 'unsafe-inline';

For Rich text version 2.x and below, you will need to add the following directives:

1
2
script-src 'self' 'unsafe-inline';
style-src 'self' 'unsafe-inline';

3.6 Progress Circle

Use versions 3.3.0 and higher of Progress Circle for strict CSP compliance.

3.7 Web Actions

Use versions 2.10.0 and higher Web Actions for strict CSP compliance.

4 Read More

  • Read Security Guide to understand more about security roles and access in Mendix
  • See App Permissions to understand how make your app ask users for permission before storing their media