是否可以在不使用代理的情况下从 Flash 访问 digg 的 API 来解决跨域问题?
是否可以在不使用代理的情况下从 Flash 访问 digg 的 API 来解决跨域问题?
我有点困惑,因为从谷歌搜索看来,API(至少在过去)有一个 crossdomain.xml 文件,但现在尝试访问 services.digg.com/crossdomain.xml (从浏览器,或者查看Firebug/Chrome 开发工具中嵌入式 Flash 调用 API 的响应代码)会导致 403 错误代码,以及 API 错误 1052(无方法)。
我对此很陌生,并且正在与其他人合作来实现此功能,因此如果有一些非常简单的配置检查,或者答案只是使用代理,那很好。
谢谢!
Is it possible to access digg's API from Flash without using a proxy to get around the cross-domain issues?
I'm a little confused because from googling it appears that the API has (atleast in the past) had a crossdomain.xml file but now trying to access services.digg.com/crossdomain.xml (from a browser, or looking at the response codes from the embedded flash calls to the API in Firebug/Chrome dev tools) results in a 403 error code, with the API error 1052(no method).
I am new to this, and working with someone else to get this implemented, so if there is something very simple to check config-wise, or else the answer is just-use-a-proxy, that's fine.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不可以,除非您尝试联系的网站在其服务器上有一个 crossdomain.xml 文件可供您访问,否则您将无法执行此操作。
我在 StumbleUpon API 中遇到了这个问题,它们实际上有一个 crossdomain.xml 文件,但不允许外部访问:http://getsatisfaction.com/stumbleupon/topics/update_of_the_cross_domain_policy_files_for_swf_files
如果您无法让他们更改此设置,则需要使用代理。
No, unless the site you're trying to contact has a crossdomain.xml file on their server giving you access, then you won't be able to do this.
I have this exact problem with the StumbleUpon API, where they actually have a crossdomain.xml file, but they don't allow external access: http://getsatisfaction.com/stumbleupon/topics/update_of_the_cross_domain_policy_files_for_swf_files
You'll need to use a proxy if you can't get them to change this.
我猜你必须使用代理,我不知道替代解决方案(除了在他们的论坛上询问为什么它不再在线)
You have to use a proxy I guess, I'm not aware of alternatives solutions (except asking on their forum why it's not online anymore)