I am fairly certain that it will need to go on the server that is hosting
the servlet, since that is the only domain that the FlashPlayer is going to
know about.  That would be: http://da803299:8080 <http://da803299:8080/> .
I am not sure how the sandbox handles port specifications in the url,
though.

 

When in doubt, put a completely open crossdomain everywhere until it works,
them remove them until it breaks.  Then close up the domain and port specs
as needed.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of Matthew
Sent: Thursday, January 14, 2010 4:44 PM
To: [email protected]
Subject: [SPAM] [flexcoders] What server do I put my crossdomain.xml file
on?

 

  

Hi - 

I have a Flex app that uses an HTTPService to call a Servlet. The servlet
retrieves a file on another domain and passes back to Flex where they are
prompted by a Windows dialog to either save or open it: It works fine
locally. 

When deployed, I get this error:

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security
sandbox violation: http://bopswdmmk1:
<http://bopswdmmk1:15010/oats/FlexClient/OATSMain.swf>
15010/oats/FlexClient/OATSMain.swf cannot load data from http://da803299:
<http://da803299:8080/oats/FTPFile?filename=/oats/oatsftp/feed/Session.csv.0
1062010.>
8080/oats/FTPFile?filename=/oats/oatsftp/feed/Session.csv.01062010.

I'm assuming this is because I need a crossdomain.xml file, right? If so,
where do I put it? On the domain that hosts the servlet, or the domain the
file is retrieved from? 

Crossdomain issues can be confusing and any insight would be greatly
appreciated. 

Thanks,

Matt



Reply via email to