3

In a silverlight application, I want to access the page the silverlight .xap file from an HTTP subdomain, but have the web services access a different subdomain for sensitive information over HTTPS.

I set up clientaccesspolicy.xml at the root of the subdomain and it lets the silverlight app access its services over http, but not over https. It gives the cross domain access error that it would give normally without a clientaccesspolicy in place.

I know that browsers themselves have a lot of restrictions about mixing http and https. Am I trying to do something that is not allowed?

4

3 に答える 3

3

チェックアウト: http://silverlight.net/forums/t/12741.aspx

同じドメインに対して https 呼び出しを行うことも、http クロスドメイン呼び出しを行うこともできますが、https クロスドメイン呼び出しを行うことはできません。

これについては、 http://msdn2.microsoft.com/en-us/library/cc189008( VS.95 ).aspx で説明されています。

(マトリックスの「HTTPS でない場合」を参照)

于 2008-09-16T15:29:57.260 に答える
2

これは、Silverlight2.0がリリースされてから古くなっています。これで、適切な構成でほとんどのクロスドメインシナリオを実行できます。 http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx

于 2008-12-31T17:51:51.257 に答える
0

上記の情報に明確に含まれていないここで注意すべき重要なことは、ドメイン要求の「ROOT」レベルにアクセスできる必要があり、clientaccesspolicy.xmlがそのレベルに存在する必要があるということです。

たとえば、ほとんどの大企業がURIを介してアプリケーションにトラフィックを転送するように、アプリケーションがロードバランサーの背後にある実稼働環境がある場合、少し問題が発生します。

例: http: //mydomain.com/MyApplication/*アプリが存在するサーバーに移動します。 http://mydomain.com/clientaccesspolicy.xml は、ポリシーが存在する場所です。

于 2009-10-28T17:55:38.143 に答える