Crossdomain issue when loading video thumbnails (Flash)
-
30-05-2021 - |
質問
I'm trying to display some Facebook video thumbnails in a Flash application, all of the video thumbnails i try to load seem to be hosted at https://fbcdn-vthumb-a.akamaihd.net.
However crossdomain.xml cannot be loaded (Access Denied). Is there some way around this? (other than loading the images through a proxy). Maybe an alternative url which can be used?
edit: This is a Facebook bug and has been reported
解決 3
I ended up using a proxy to load the thumbs through so crossdomain was no issue, i've just checked and the crossdomain files are correct now.
他のヒント
Try using a LoaderContext in your Loader and set the checkPolicyFile flag to true:
var lc:LoaderContext = new LoaderContext();
lc.checkPolicyFile = true;
var loader:Loader = new Loader();
loader.load(new URLRequest("https://url.com/image/path/name.jpg"), lc);
There are some known issues with crossdomain policy files on Akamai CDNs. Here's an in depth look at a similar problem to yours, and a solution:
http://jessewarden.com/2009/03/handling-crossdomainxml-and-302-redirects-using-netstream.html