2 Replies Latest reply on Jun 16, 2009 11:04 PM by mikaye

    Security Sandbox Violation

    mikaye

      I am trying to establish a tcp socket connection from a flex browser application to a local socket server (localhost:8010). The flex app is loaded from my local http server. The socket server is returning the following cross domain policy upon intial connection,

       

      <?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><allow-access-from domain="*" to-ports="8010-8100"/></cross-domain-policy>

       

      However, I continue to get the following sandbox violation,

       

      Connection to localhost:8010 halted - not permitted from http://localhost/~mike/app/main.swf
      Error: SWF from http://localhost/~mike/app/main.swf may not connect to a socket in its own domain without a policy file.  See http://www.adobe.com/go/strict_policy_files to fix this problem.

      *** Security Sandbox Violation ***
      Connection to localhost:8010 halted - not permitted from http://localhost/~mike/app/main.swf
      [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: http://localhost/~mike/app/main.swf cannot load data from localhost:8010."]

       

       

      Why doesn't flash see the cross domain policy returned by the socket server?