dowb58485 2010-03-01 13:11
浏览 67
已采纳

检索Twitter用户信息在Flash中不起作用

I'm building a Twitter search application in Flash and have encountered a security error when retrieving a user's information using the following...

http://api.twitter.com/1/users/show.xml?screen_name=

I noticed a crossdomain.xml file returned with the above.

This works

http://search.twitter.com/search.atom?

Can anyone suggest a solution?

  • 写回答

1条回答 默认 最新

  • dtn55928 2010-03-01 14:33
    关注

    The cross domain policy for search.twitter.com permissive:

    <cross-domain-policy>
           <allow-access-from domain="*" />
    </cross-domain-policy>
    

    And for api.twitter.com it's quite restrictive:

    <cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd">
      <allow-access-from domain="twitter.com" />
            <allow-access-from domain="api.twitter.com" />
            <allow-access-from domain="search.twitter.com" />
            <allow-access-from domain="static.twitter.com" />
            <site-control permitted-cross-domain-policies="master-only"/>
      <allow-http-request-headers-from domain="*.twitter.com" headers="*" secure="true"/>
    </cross-domain-policy>
    

    meaning that the only way to talk to api.twitter.com would be to call a script on your server and then proxy the request to twitter.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#网络安全#的问题:求ensp的网络安全,不要步骤要完成版文件
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥20 使用Photon PUN2解决游戏得分同步的问题
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM