Enable Cross-Domain Support

The Post Installer's Configure Cross Domain Support page applies to legacy Silverlight and Flash/Flex applications only. For cross-domain support in HTML5 viewers, see Set Up Cross-Origin Resource Sharing (CORS).

Geocortex Essentials provides REST-based services that can be consumed by client applications. Normally, browser applications only allow site-of-origin communication for requests other than images. For example, a Silverlight application hosted at http://mydomain.com/app can only access services on the http://mydomain.com domain. It cannot access resources on a domain such as http://other.com without special permission.

Silverlight applications use a clientaccesspolicy.xml file at the root of a domain to permit cross domain access.

Cross-domain access is not a requirement for Geocortex Essentials, however, it is necessary in many common deployment scenarios that involve multiple servers and domains.

You might need to enable cross-domain support on the Core server, and on each server that hosts a copy of the REST API.

To enable a cross domain support for the domain hosting Essentials:

  1. Launch the Post Installer.

  2. Click Configure Cross Domain Support in the side panel.

    The Cross Domain Support panel opens.

  3. Select the website that is hosting Geocortex Essentials.

  4. Click Enable on the clientaccesspolicy.xml entry to enable cross-domain support using a clientaccesspolicy.xml file.

    This deploys a default crossdomain.xml file to the root of IIS (typically C:\Inetpub\wwwroot\clientaccesspolicy.xml). You may edit this file to fine tune its behavior.

    If a clientaccesspolicy.xml file already exists for the selected website, the Enable button is disabled.

  5. Click Enable for the crossdomain.xml entry to enable cross domain support using a crossdomain.xml file.

    This deploys a default crossdomain.xml file to the root of IIS (typically C:\Inetpub\wwwroot\crossdomain.xml). You may edit this file to fine tune its behavior.

    If a crossdomain.xml file already exists for the selected website, the Enable button is disabled.

  6. Click Finish.

    You have now enabled cross-domain support.