有人可以发布格式良好的 crossdomain.xml 示例吗?
我一直在读到 Adobe 在 flash 9-10 中使 crossdomain.xml 变得更加严格,我想知道有人可以向我粘贴一份他们知道有效的副本。 在 Adobe 网站上查找最新示例时遇到一些问题。
I've been reading that Adobe has made crossdomain.xml stricter in flash 9-10 and I'm wondering of someone can paste me a copy of one that they know works. Having some trouble finding a recent sample on Adobe's site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这就是我一直在开发中使用的方法:
这是一种非常自由的方法,但对于我的应用程序来说很好。
正如其他人在下面指出的那样,请注意这样做的风险。
This is what I've been using for development:
This is a very liberal approach, but is fine for my application.
As others have pointed out below, beware the risks of this.
如果您使用网络服务,您还需要“allow-http-request-headers-from”元素。 这是我们默认的开发“允许一切”政策。
If you're using webservices, you'll also need the 'allow-http-request-headers-from' element. Here's our default, development, 'allow everything' policy.
看一下 Twitter 的:
http://twitter.com/crossdomain.xml
Take a look at Twitter's:
http://twitter.com/crossdomain.xml
在生产站点中,这似乎合适:
In production site this seems suitable:
crossdomain.xml 版本曾经与 HTML5 Boilerplate 一起打包,多年迭代开发和综合社区知识的产物。但是,它已从存储库中删除。 我已将其逐字复制到此处,并包含指向下面删除它的提交的链接。
在 #1881 中删除
https://github.com/h5bp/html5-boilerplate/commit/58a2ba81d250301e7b5e3da28ae4c1 b42d91b2c2
A version of crossdomain.xml used to be packaged with the HTML5 Boilerplate which is the product of many years of iterative development and combined community knowledge. However, it has since been deleted from the repository. I've copied it verbatim here, and included a link to the commit where it was deleted below.
Deleted in #1881
https://github.com/h5bp/html5-boilerplate/commit/58a2ba81d250301e7b5e3da28ae4c1b42d91b2c2