0 Replies Latest reply on May 17, 2012 8:41 AM by MrCodeghost

    Unable to call external servlet

    MrCodeghost Level 1

      I am callng a servlet from a browser based Flex app but get the following exception:

       

      Error #2044: Unhandled securityError:. text=Error #2170: Security sandbox violation: http://MyURL/web-player/WebPlayer.swf cannot send HTTP headers to http:/MyOtherUrl:1936/ImageUpload.

                at WebPlayer/screenGrab()

                at WebPlayer/__exportImageButton_click()

       

      I have the following crossdomain.xml being served from http://MyOtherUrl/ and http://MyOtherUrl:1936/ (the port the servlet is served from).

       


      <?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="*" />

        <allow-http-request-headers-from domain='*' headers="*" secure="false"/>

        <site-control permitted-cross-domain-policies="all"/>

      </cross-domain-policy>

       

      What am I doing wrong?