跨域托管的Silverlight应用未在https网页中加载

时间:2022-04-06 04:51:09

I want to provide silverlight app to my customer while hosting the app at my own site for streamlined maintenance.

我想在我自己的网站上托管应用程序时为我的客户提供silverlight应用程序,以简化维护。

  • my Silverlight .xap is hosted in, let say, domain me-supplier.com
  • 我的Silverlight .xap托管在域名me-supplier.com中

  • i want to embed it in, let say, domain my-customer.com
  • 我想把它嵌入域名my-customer.com中

It works perfectly for http://my-customer.com, not for https://my-customer.com

它适用于http://my-customer.com,而不适用于https://my-customer.com

  • i have added the (me-supplier.com hosted) cross domain silverlight policy file to allow my-customer.com
  • 我添加了(me-supplier.com托管的)跨域silverlight策略文件以允许my-customer.com

  • i have configured the mime types for .xap
  • 我已经为.xap配置了mime类型

  • the silverlight app needs html dom access so the iframe approach is not viable i believe.
  • silverlight应用程序需要html dom访问权限,因此我相信iframe方法不可行。

this works for javascript code, so why not for silverlight ? any idea, workaround ?

这适用于javascript代码,为什么不用于silverlight?任何想法,解决方法?

2 个解决方案

#1


1  

Is the silverlight app also on https? If not, you might be hitting a security wall which does not allow to intermix http and https application domains

Silverlight应用程序也在https上吗?如果没有,您可能会遇到不允许混用http和https应用程序域的安全墙

#2


1  

I think the answers to this question may explain it.

我认为这个问题的答案可以解释它。

Generally HTTPS doesn't like you drawing data between domains within a page because the certificate is tied to the current domain.

通常,HTTPS不喜欢您在页面中的域之间绘制数据,因为证书绑定到当前域。

#1


1  

Is the silverlight app also on https? If not, you might be hitting a security wall which does not allow to intermix http and https application domains

Silverlight应用程序也在https上吗?如果没有,您可能会遇到不允许混用http和https应用程序域的安全墙

#2


1  

I think the answers to this question may explain it.

我认为这个问题的答案可以解释它。

Generally HTTPS doesn't like you drawing data between domains within a page because the certificate is tied to the current domain.

通常,HTTPS不喜欢您在页面中的域之间绘制数据,因为证书绑定到当前域。