I have a remote server from which my Flex app accesses data through a REST api. 
 I am unable to access the data without placing a crossdomain.xml file in the 
root of my remote server.  If I try really hard and fight with my IIS server 
web.config file, I can sometimes get my server to serve up the crossdomain.xml 
file and then my Flex app works great.  

The problem is that my remote server is setup to filter off any XML file 
requests and handle them as part of my REST api implementation, so unless I 
fudge my web.config file, all of my requests for the crossdomain.xml file end 
up going to the wrong handler, the one for the REST api.  So far I have been 
unable to setup my web.config file to serve up the crossdomain.xml file as text 
and send all other XML requests to the REST api handler.

So, I am wondering if it is possible to rename the crossdomain.xml file to 
something else, like crossdomain.txt.  I tried doing this and calling 
Security.loadPolicyFile, which seems to load the crossdomain.txt file 
correctly, however, the crossdomain.xml file is also still being requested and 
failing and the remote calls to this server are still not working.

Is is possible to do what I am trying?  Can I rename the crossdomain.xml file 
and tell my flex application to load it differently, or am I forced to load a 
crossdomain.xml file from the root of my remote server?

Thanks for your help!

Gary

Reply via email to