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.xml
entry to enable cross-domain support using aclientaccesspolicy.xml
file.This deploys a default
crossdomain.xml
file to the root of IIS (typicallyC:\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. -
Click Enable for the
crossdomain.xml
entry to enable cross domain support using acrossdomain.xml
file.This deploys a default
crossdomain.xml
file to the root of IIS (typicallyC:\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. -
Click Finish.
You have now enabled cross-domain support.