Specifications

CHAPTER 15
310
Step 4. Configure the proxy server
In “Step 3. Verify access to your servers from outside the firewall” on page 309, you ensure that you can directly
access your servers and server resources from outside the firewall.
After you configure your proxy server, ensure that the deployed Flex application can access web services and other
server-side resources as necessary.
Step 5. Create a crossdomain policy file
Your system might be configured to allow a Flex application to directly access server-side resources on different
domains or different computers without going through a proxy. These operations fail under the following condi-
tions:
When the Flex applications SWF file references a URL, and that URL is outside the exact domain of the SWF
file that makes the
request
When the Flex applications SWF file references an HTTPS URL, and the SWF file that makes the request is
not served over HTTPS
To make a data service or asset available to SWF files in different domains or on different computers, use a cross-
domain policy file on the server that hosts the data service or asset. A crossdomain policy file is an XML file that
provides a way for the server to indicate that its data services and assets are available to SWF files served from
certain domains, or from all domains. Any SWF file that is served from a domain specified by the server’s policy
file is permitted to access a data service or asset from that server. By default, place the crossdomain.xml at the root
directory of the server that is serving the data.
For more information on using a cross-domain policy file, see “Using cross-domain policy files” on page 40.