是否可以通过 Silverlight 应用程序访问maps.google.com?
maps.google.com 的 crossdomain.xml 文件如下:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control
permitted-cross-domain-policies="by-content-type" />
</cross-domain-policy>
您能否确认这实际上意味着 Silverlight(和 Flash)的“访问被拒绝”,因为没有任何元素“允许”任何类型的访问使用权?
maps.google.com's crossdomain.xml file is as follows:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control
permitted-cross-domain-policies="by-content-type" />
</cross-domain-policy>
Can you confirm that this effectively means "Access Denied" for Silverlight (and Flash), since there are no elements 'allow'ing any kind of access?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Silverlight 4 浏览器外应用程序可以忽略 crossdomain.xml 策略文件。
A Silverlight 4 Out-of-Browser application can ignore the crossdomain.xml policy file.
必须是谷歌地图吗? Bing 地图有一个很棒的 Silverlight 控件。 CodeProject 上有一篇很好的 关于它的文章以及一个不错的交互式 SDK。
如果必须是 Google 地图,请查看此帖子中标记的答案其中引用了另一个 CodeProject文章可能会有所帮助。
Does it have to be Google Maps? Bing Maps has a great Silverlight Control. There is a good article about it on CodeProject as well as a nice Interactive SDK.
If it has to be Google Maps, check out the flagged answer in this thread which references another CodeProject article that may be helpful.
好吧,考虑到这个 crossdomain.xml 的内容,Silverlight 似乎不会授予对该域的访问权限。请注意,我仍然想要解释 crossdomain.xml 的含义。
Well, it seems that Silverlight will not grant access to the domain given the content of this crossdomain.xml. I would still like an explanation of what the crossdomain.xml means, mind you.