Decisions Platform in an iFrame
  • 18 Feb 2022
  • 1 Minute to read
  • Dark
    Light

Decisions Platform in an iFrame

  • Dark
    Light

Overview

When Decisions is installed its default Settings allow the User Portal to be opened in the iFrame within the same domain. The following document demonstrates how to enable or disable Decisions' ability to be opened in an iFrame.


Example

  1. In Windows File Explorer, navigate to C:\Program Files\Decisions\Decisions Server.
  2. As an administrator open the Settings.xml file with the preferred text editor.

  3. Use the Find feature via CTRL + F to find the line that contains EnableSingleSignOn.
  4. Add the following code and change .example.com to the desired URL to embed Decisions in.
    C#
    <EnableHttpToHttpsRedirection>false</EnableHttpToHttpsRedirection> 
      <CustomHeaders> 
        <CustomHeader> 
          <Name>Content-Security-Policy</Name> 
          <Value>frame-ancestors 'self' https://*.example.com;</Value>
        </CustomHeader> 
      </CustomHeaders>

  5. Save and close the Settings.xml file. 
  6. Restart the Decisions instance by opening the DecisionsServerInstaller executable, and clicking RESTART SERVICE. 
The restart process may differ depending on the type of Environment in use. For additional aid in Restarting Decisions, see: How to Restart the Decisions Application. 

Reminder!
Each browser has different compatibility with these settings. To verify that the browser will honor the desired setting, refer to the Browser Compatibility chart on Mozilla’s website by using the following link: Mozilla's X-Frame Options
For further information on Integrations, visit the Decisions Forum.

Was this article helpful?