Step 2: edit the settings XML files

Pentaho CTools

Version
10.2.x
Audience
anonymous
Part Number
MK-95PDIA006-12
Enable Cross Origin Resource Sharing (CORS) in the Community Dashboard Framework (CDF), Community Dashboard Editor (CDE), and Community Data Access (CDA). While you need CDE to embed the dashboard, you will access it from a different server other than the Pentaho Server, so CORS must be enabled in CDF, CDE and CDA. Open the following CDF, CDE, and CDA settings.xml files in a text editor:
  • For CDF: server/pentaho-server/pentaho-solutions/system/pentaho-cdf/settings.xml.
  • For CDE: server/pentaho-server/pentaho-solutions/system/pentaho-cdf-dd/settings.xml.
  • For CDA: server/pentaho-server/pentaho-solutions/system/cda/settings.xml.

Make the following replacements in each settings.xml file:

  1. In all settings.xml files, find the line:
    <allow-cross-domain-resources>false</allow-cross-domain-resources>
    and then change it to:
    <allow-cross-domain-resources>true</allow-cross-domain-resources>
  2. In the settings.xml file for CDF and CDA, find the line:
    <cross-domain-resources-whitelist><!--intentionally left blank --></cross-domain-resources-whitelist>
    and then change it to:
    <cross-domain-resources-whitelist>http://localhost:2777</cross-domain-resources-whitelist