This is an ActionScript 3 problem...
I am hosting a swf on my.domainA and I am requesting a jpg from my.domainB ( of course I'm obsfucating the domain names ) the using this code:
var request:URLRequest = new URLRequest(result.image); request.requestHeaders.push(header); var context:LoaderContext = new LoaderContext(true, ApplicationDomain.currentDomain, SecurityDomain.currentDomain); content = new Loader(); content.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoaded); content.load(request, context);
Domain B has a cross domain xml file which looks like this:
" " - having problems getting stackoverflow to show the xml but it's standard allow-access-from domain="*" policy file
However, I get this error: "Error: [strict] Ignoring policy file at my.domainB.com/crossdomain.xml due to bad Content-Type 'binary/octet-stream'. See www.adobe.com/go/strict_policy_files to fix this problem."
Does anyone have any idea how I can resolve this? Is this bad Content-type for the crosdomain.xml file or the jpg I am requesting?
Any help appreciated.