I am writing a Flex application which uses http://localhost
" as the domain for the url when I make mx:HTTPRequest server calls.
Given the above setup, my goal is to allow a workstation within my LOCAL network to access the application by using the server's local IP address, which is 192.168.1.105. When I use that IP though to access my application making a mx:HTTPRequest call gives me this error message:
.Error faultString:'Security error accessing url' faultDetail:'Destination: DefaultHTTP'
That sounds to me like a domain security issue, something which Flash forbids unless I create a crossdomain.xml that specifically lists domain names permitted to access my data. So I created a crossdomain.xml that looks like this:
I put my crossdomain.xml at the web root, which is c:/Tomcat5/webapps/myApp/c
.xml. From what I've read, the above should allow any other domain to access my application's data.
But no, when I try to access my application using http://192.168.1.105/lmyApp
, I still get the same error message.
Can anyone please tell me what I am doing wrong?
My ultimate goal is to be able to access my application from anywhere in the world as well as from within my network without having to worry about what domain I use in the URL (i.e., be it http://localhost/myApp
, or http://192.168.1.105/myApp
, or even by IP such as http://73.22.365.253/myApp
This is really important to me, so I would appreciate any help anyone can provide. Thanks.