3 Replies Latest reply on Oct 13, 2010 10:25 AM by Flex harUI

    Socket: Error #2048: Security sandbox violation


      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">
        <allow-access-from domain="*" to-ports="80,8080" secure="false"/>



      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



      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.