
How do I fix the crossdomain issue with Flash widgets?
Flash widgets have a built-in security mechanism that causes an alert to pop up or even a silent code failure whenever data is accessed by the widget from a domain other than the domain the widget itself is served from. This is a common issue with Flash widgets and can be fixed in two ways:
* If you have file access to the website your widget is pulling data from, you can place a file called crossdomain.xml in the server's document root with the following content:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
You can read more about the crossdomain.xml file
here.
* If you don't have access to the server you want to pull data from, you can still do it by using the Widgipedia redirect page. All you need to do is prepend the URLs in your widget code with
http://www.widgipedia.com/redirect/
For instance, if your widget pulls external data from
http://www.mysite.com/rss/
you will need to replace the URL with:
http://www.widgipedia.com/redirect/http:// www.mysite.com/rss/