1 Reply Latest reply on Dec 9, 2010 2:16 PM by Flex harUI

    crossdomain for reading xml file

    Cr99 Level 1

      I'm trying to read an xml file via HTTPService in my flex app.

       

      It works fine on my local machine, but when I deploy it to a server (a different one from where the xml file is), it gives me a security error.

       

      So I've read that crossdomain.xml is necessary to get around this problem, but where does this file need to go?  On the server with the xml file I'm trying to read or on the server running my flex app which is trying to read the xml?

       

      And as far as the crossdomain file, if I have 2 servers (xml.com & myflexapp.com) what does the crossdomain file look like?

       

      <?xml version="1.0"?>

      <cross-domain-policy>

          <allow-http-request-headers-from domain="?"/>

      </cross-domain-policy>