crossdomain.xml、silverlight 4 的问题
由于某种原因,我的 crossdomain.xml
从未被 Silverlight 接受,并且我每次都会收到 SecurityException
。我正在使用 SL4 和 HTTPS。服务器一开始就离线,第一次请求失败。 60 秒后,客户端再次请求 crossdomain.xml
,我返回该文件,如下所示,但出现安全异常。我正在使用 Fiddler 返回文件。
同样有趣的是,它可以与 clientaccesspolicy.xml
一起使用,但仅在第一次请求,所有后续请求仅请求 crossdomain.xml
。文件如下
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from>
<domain uri="*"/>
</allow-from>
</policy>
</cross-domain-access>
</access-policy>
For some reason my crossdomain.xml
is never accepted by Silverlight and I'm getting the SecurityException
everytime. I'm using SL4 and HTTPS. The server is offline to begin with, the first request fails. After 60 seconds, the client again requests for the crossdomain.xml
, I return the file, as given below, but I get the security exception. I'm using Fiddler to return the file.
Also interesting is that it works with clientaccesspolicy.xml
but that is requested only the first time and all subsequent requests only ask for crossdomain.xml
. The file is as below
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from>
<domain uri="*"/>
</allow-from>
</policy>
</cross-domain-access>
</access-policy>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
crossdomain.xml 文件应该有另一个内容:
crossdomain.xml file should have another content:
看看这篇文章:从 Silverlight 4 调用 HTTPS-WCF 服务时出现安全错误
Take a look to this post from SO: SecurityError when calling a HTTPS-WCF Service from Silverlight 4
尝试:
Try: