My Flex application is being hosted at http://<ip>:8080/MyApp/Login.html
, when I go there there is a request for http://<ip>:8080/crossdomain.xml
is created, as well as a request for https://<ip>:8080/crossdomain.xml
. This happens when I attempt to use a Remote Java Object call to the same server, and grab assets from it. I am not hosting https on port 8080, therefore this https call will fail.
The problem is that the https call will sometimes take a long time to fail (it fails by the connectionTimeout length in the tomcat connector). Other times it fails quickly. However, in the times that it does take a long time to fail, the page doesn't complete loading because I'm waiting on those assets and the remote object calls for data.
I've tried setting up a forceful retrieval of a crossdomain.xml with the following inside it:
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*" to-ports="*"/>
</cross-domain-policy>
With the AS3 code:
Security.loadPolicyFile(browserUrl+"/assets/crossdomain.xml");
Which is being called in the application's initialize
event. The above, forceful, crossdomain.xml file is being called and retrieved correctly according to chrome and wireshark, but the default locations at the root of the server are still being attempted, and the https attempt is still timing out. And the app is not completing its loading until that attempt times out.