Matthew-104 wrote:
> 
> 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:15010/oats/FlexClient/OATSMain.swf
> cannot load data from
> http://da803299:8080/oats/FTPFile?filename=/oats/oatsftp/feed/Session.csv.01062010.
> 
Hi there,

In our project we resolved this issue by making the servlet stream the file
to the Flex client (by opening the file and writing its contents to the
outputstream) instead of re-directing the client to the file server
(response.sendRedirect). This approach IMO has the advantage of the client
being unaware of the exact location as to where the files are stored along
with saving yourself the trouble of creating a crossdomain.xml file for your
file servers. Of course, YMMV. :-)

-sasuke

-- 
View this message in context: 
http://old.nabble.com/What-server-do-I-put-my-crossdomain.xml-file-on--tp27168580p27205916.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to