开发者

XML Loading in flash not working on facebook

开发者 https://www.devze.com 2022-12-17 20:14 出处:网络
I have a flash file which calls up a url say http://test.com/createXML/ which is caught and used up by a python/django code and it creates and redirects to an XML. which is loaded by flash, to get val

I have a flash file which calls up a url say http://test.com/createXML/ which is caught and used up by a python/django code and it creates and redirects to an XML. which is loaded by flash, to get values from the database.

The setup works fine when outside facebook, 开发者_运维技巧but as soon as I put the setup in facebook, it stops loading the XML completely.

Any clues?

Fahim.


Do you have an appropriate crossdomain.xml file in the test.com domain (where the xml is hosted)? If not, add a crossdomain.xml file at the root of the server that looks something like:

<?xml version="1.0"?>
<cross-domain-policy>
  <!-- set the domain attr to appropriate value or 
     just * if you are fine with it -->
  <allow-access-from domain="*.facebook.com"/>
</cross-domain-policy>
0

精彩评论

暂无评论...
验证码 换一张
取 消