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:
-
Click Configure Cross Domain Support in the side panel.
The Cross Domain Support panel opens.
-
Select the website that is hosting Geocortex Essentials.
-
Click Enable on the
clientaccesspolicy.xmlentry to enable cross-domain support using aclientaccesspolicy.xmlfile.This deploys a default
crossdomain.xmlfile to the root of IIS (typicallyC:\Inetpub\wwwroot\clientaccesspolicy.xml). You may edit this file to fine tune its behavior.If a
clientaccesspolicy.xmlfile already exists for the selected website, the Enable button is disabled. -
Click Enable for the
crossdomain.xmlentry to enable cross domain support using acrossdomain.xmlfile.This deploys a default
crossdomain.xmlfile to the root of IIS (typicallyC:\Inetpub\wwwroot\crossdomain.xml). You may edit this file to fine tune its behavior.If a
crossdomain.xmlfile already exists for the selected website, the Enable button is disabled. -
Click Finish.
You have now enabled cross-domain support.