来自api.soundcloud.com的crossdomain.xml文件内容不正确

时间:2015-07-07 15:56:16

标签: actionscript-3 api soundcloud

SoundCloud.com此网址上的 crossdomain.xml 文件似乎有问题: https://api.soundcloud.com/crossdomain.xml

如果您在新标签/窗口中打开该xml链接并刷新页面几次,您会发现显示的xml内容不一致......

有时可以提供此服务:

<cross-domain-policy>
    <!--
        Allow access from anywhere. This policy should be used for domains
        serving third party apps (api, images, streams).
    -->
    <allow-access-from domain="*" secure="false"/>
    <site-control permitted-cross-domain-policies="master-only"/>
</cross-domain-policy>

但它有时会改为:

<cross-domain-policy>
    <!--
        Lock down access to Flash applications served by us.
        This policy should be served for all domains that Flash apps require
        access to and that are not serving api, images or stream (those need
        to be open to third party apps as well).
    -->
    <allow-access-from domain="soundcloud.com" secure="false"/>
    <allow-access-from domain="*.soundcloud.com" secure="false"/>
    <allow-access-from domain="*.sndcdn.com" secure="false"/>
    <site-control permitted-cross-domain-policies="master-only"/>
</cross-domain-policy>

我们需要始终为我们的SoundCloud集成提供第一响应(Allow-All)(在Calameo出版物中嵌入soundcloud轨道:http://www.calameo.com

有任何想法可以修复或解决这个问题吗?感谢。

更新(2015/10/12)

似乎SoundCloud为不正确的版本而不是正确的版本更改了他们的crossdomain.xml文件。该URL现在仅用于:

<cross-domain-policy>
    <!--
        Lock down access to Flash applications served by us.
        This policy should be served for all domains that Flash apps require
        access to and that are not serving api, images or stream (those need
        to be open to third party apps as well).
    -->
    <allow-access-from domain="soundcloud.com" secure="false"/>
    <allow-access-from domain="*.soundcloud.com" secure="false"/>
    <allow-access-from domain="*.sndcdn.com" secure="false"/>
    <site-control permitted-cross-domain-policies="master-only"/>
</cross-domain-policy>

0 个答案:

没有答案