I've searched several FLEX forums on this issue and have yet to find a resolution to this. Looks like there have been pleanty of individuals that have received this message:
I'm attempting to connect to a java service running port 8080 on the same linux host as the Apache instance serving my flex application.
The "crossdomain.xml" is on the root of the webserver and accessible via http://myhost/crossdomain.xml and contains the fillowing:
<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="*" to-ports="80,8080" secure="false"/> </cross-domain-policy>
In Flex, before creating the socket, I'm making the following call:
Security.loadPolicyFile("http://" + serverURL + "/crossdomain.xml");
I do see the initial call from my Flex app to my java service with the following message (as expected):
Using LiveHeaders (In Firefox) I do see the initial call to the crossdomain.xml file when attempting the first connect request
#request# GET http://192.168.1.100/crossdomain.xml
Question: Why do I keep seeing the following error message? Am I missing something?
Trying to connect to myhost:8080 Error #2048: Security sandbox violation: http://myhost/bin/Dating.swf cannot load data from myhost:8080. closed...
I thought there was more to add to crossdomain.xml for sockets. Check the
security whitepapers on the Adobe site.
Were you referring to this white paper?
I read through it, but didn't answer the question of what else might be missing. Can you provide an example of what my crossdomain.xml file should look like?