euclidian
10-03-2005, 11:21 AM
Hi,
I'm having problems getting some remoting to work when deployed to a server. If the user enters http://www.mydomain.com/remotingstuff/ then everything works fine. The problem I'm having is that our app servers are quite often deployed on the testers local machine, therefore the address they're using becomes http://localhost/remotingstuff/ and we're getting a NetConnection.Call.Prohibited message.
I'm assuming that this is because of the security sandbox of flash and so I've put the following crossdomain.xml file in the root of the app server
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
where the flash files and jsp pages are all in /remotingstuff/ for example. I've also tried putting a copy of crossdomain.xml in /remotingstuff/ but no joy :'(
I think I have a fair understanding of the problem but dont seem to be able to get any further, so any suggestions would be greatly appreciated :) Is it just a quirk of the security that crossdomain.xml doesnt apply to localhost or something? or is there something else I've missed? or... do I need to reference the crossdomain.xml from within my flash movies?
Thanks again
Dave
I'm having problems getting some remoting to work when deployed to a server. If the user enters http://www.mydomain.com/remotingstuff/ then everything works fine. The problem I'm having is that our app servers are quite often deployed on the testers local machine, therefore the address they're using becomes http://localhost/remotingstuff/ and we're getting a NetConnection.Call.Prohibited message.
I'm assuming that this is because of the security sandbox of flash and so I've put the following crossdomain.xml file in the root of the app server
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
where the flash files and jsp pages are all in /remotingstuff/ for example. I've also tried putting a copy of crossdomain.xml in /remotingstuff/ but no joy :'(
I think I have a fair understanding of the problem but dont seem to be able to get any further, so any suggestions would be greatly appreciated :) Is it just a quirk of the security that crossdomain.xml doesnt apply to localhost or something? or is there something else I've missed? or... do I need to reference the crossdomain.xml from within my flash movies?
Thanks again
Dave