In my application, I am trying to display some data from google.com.
My problem is that I always have this error :
Error #2048: Security sandbox violation: https://XXXXX.com/runtime.swf cannot load data from http://www.google.com/finance/company_news?q=null:OZG&output=rss.
The crossdomain.xml of google looks like that:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="by-content-type" />
</cross-domain-policy>
And I call the page in my AS3 code like that :
var hdr:URLRequestHeader = new URLRequestHeader("Content-type", "text/x-cross-domain-policy");
var request:URLRequest = new URLRequest(feedURL);
request.requestHeaders.push(hdr);
//then load the request with an UrlLoader
Do you have any idea of why flash give me this cross damin security error?
I actually misunderstood the meaning of the crossdomain.xml file. Basically, the crossdomain policy file of google doesn’t allow any domain.
I think that my only solution is to use a proxy…