No, the crossdomain.xml file goes on the server FROM WHCH you are
requesting the data.  The idea is that the owner of the data can control
access to that data.

 

http://www.crossdomainxml.org/

 

A proxy is a good long term solution.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Paul DeCoursey
Sent: Friday, March 09, 2007 4:45 PM
To: [email protected]
Subject: [flexcoders] Re: Security error accessing url

 

Maybe I've been misinformed but doesn't the cross domain file need to
be one the server that serves the swf file?

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "rzilist" <[EMAIL PROTECTED]> wrote:
>
> How to get around this error? I've written small Flex application to 
> retrieve stock info in exchange for company symbol. I've used 
> Eclipse with Flex plugin. Inside the app, I'm calling webservice on 
> quote.yahoo.com website. I can load the html page which references 
> the swf file (by either running it from within Eclipse, or by 
> opening it in both IE and Firefox). This works fine, and I get some 
> stock data back. However, if I try serving the page from one of my 
> local servers, or even copying it (along with other supporting 
> files) to other location on my hard drive, loading the same page 
> results in an "Security error accessing url" from my Adobe Flash 
> Player 9. I've even tried to use a straight HTTP post instead of a 
> webservice call, but to no avail.
> 
> Now, I know that in order to access the data on the domain other 
> than the one my app is running on, Adobe Flash Player requires 
> crossdomain.xml file to be on the data server root. Yahoo indeed 
> hosts this file at http://quote.yahoo.com/crossdomain.xml,
<http://quote.yahoo.com/crossdomain.xml,>  but it 
> only has a few entries. I simply want to read company stock info 
> from publicly exposed service, but I see no way of adding the domain 
> name to their crossdomain file each time someone wants to read a 
> stock info.
> 
> Any help is appreciated.
> 
> Roman
>

 

Reply via email to