2 Replies Latest reply on Jun 8, 2009 5:11 AM by PauloDavid

    Problem crossdomain.xml

    PauloDavid

      Good afternoon,

       

      I have a web application in flex 3 that on a server "http://SRV-XXX:8181/relflex/main.html" and within the application I'm accessing by HTTPService "http://SRV-XXX:8181/SL_SISFLEX/ slSRV05 "(my Servlets).
      When you access the site with "http://SRV-XXX:8181/relflex/main.html" works normally, but when I go "http://172.1.0.6:8181/relflex/main.html" does not work and shows the Error # 2048

       

      (mx.messaging.messages:: errorMessage) # 0
         body = (null)
         clientId = "DirectHTTPChannel0"
         correlationId = "0D499AD7-FE29-95E7-9B5A-B2062705750F"
         destination = ""
         extendedData = (null)
         faultCode = "Channel.Security.Error"
         faultDetail = "Destination: DefaultHTTP"
         faultString = "Security error accessing url"
         headers = (Object) # 1
           DSStatusCode = 0
         MessageId = "F4BCF095-DD0B-8739-5057-B2062734F478"
         rootCause = (flash.events:: SecurityErrorEvent) # 2
           bubbles = false
           cancelable = false
           currentTarget = (flash.net:: URLLoader) # 3
             bytesLoaded = 0
             bytesTotal = 0
             data = (null)
             dataFormat = "text"
           eventPhase = 2
           target = (flash.net:: URLLoader) # 3
           text = "Error # 2048: Violation of the area of security:
      http://172.1.0.6:8181/relflex/main.swf can not load data from http://SRV-XXX:8181/SL_SISFLEX/slSRVXXX?db=relflex&parameterDataSource=USP%5FPOD S."
           type = "securityError"
         timestamp = 0
         timeToLive = 0

       

      I'm trying to use the link in the crossdomain.xml that http://SRV-XXX:8181/relflex/crossdomain.xml:

       

      <?xml version="1.0"?>
      <!DOCTYPE cross-domain-policy SYSTEM "
      http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
      <cross-domain-policy>
      <site-control permitted-cross_domain-policie="all"/>
          <allow-access-from domain="*" to-ports="*"/>
          <allow-access-from domain="srv-XXX" to-ports="8181"/>
          <allow-access-from domain="172.1.0.6" to-ports="8181"/>
      </cross-domain-policy>

       

      And in the application i'm call -> flash.system.Security.loadPolicyFile("http://SRV-XXX:8181/relflex/crossdomain.xml");

      Can you help me solve the problem of call by 172.1.0.6:8181 and SRV-XXX:8181?

       

      TKS!

       

      Paulo David