The example parent application can be used to embed the SDx Web Client and is located in the Embedded mode samples folder available from Smart Community. For more information, see Find sample data on Smart Community.
For the purposes of this example, the SDx URL is https://wc.domain.com/sdx/. To configure the example parent application:
-
Log on to the SDx Web Client.
-
Open the main.js file in an editor, and edit the clientDomain variable to https://wc.domain.com.
-
Open the index.html file with an editor, and edit the iframe src value to https://wc.domain.com/sdx/.
-
Open IIS, and set up a new application that points to the embedded samples folder. For example, https://parent.domain2.com/sampleapp/.
-
Open the application server Web.config file, and under the appsettings node add the following:
<add key="FrameOptionsWhiteList" value="https://parent.domain2.com/">
This step is only required if HxGN SDx is installed on-premises.
-
Run the embedded SDx Web Client by navigating to https://parent.domain2.com/sampleapp/.
-
If your browser tries to block the authentication pop-up, add the web address to the allowed list and refresh.
-
If you get any errors, you can view the error console for any details.
-
If the Web.config file is changed, you must restart the Web Client server for the changes to take effect.
-