gpt4 book ai didi

silverlight - 为什么我的 Silverlight 客户端在切换到 SSL 时找不到 clientaccesspolicy 文件?

转载 作者:太空宇宙 更新时间:2023-11-03 13:19:39 24 4
gpt4 key购买 nike

我开发了一个在常规 HTTP 上运行良好的 Silverlight 客户端,但现在我试图让它在 SSL 上运行,我收到以下错误:

尝试向 URI [出于安全原因删除 URL] 发出请求时发生错误这可能是由于在没有适当的跨域策略的情况下尝试以跨域方式访问服务,或者不适用于 SOAP 服务。您可能需要联系服务的所有者以发布跨域策略文件并确保它允许发送与 SOAP 相关的 HTTP header 。此错误也可能是由于在 Web 服务代理中使用内部类型而不使用 InternalsVisibleToAttribute 属性引起的。有关详细信息,请参阅内部异常。

我正在使用以下客户端访问策略:

<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="http://*"/>
<domain uri="https://*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>

关于什么可能导致此错误的任何想法?

最佳答案

我认为您的客户端访问策略中遗漏了一个小项目。 allow-from http-request-headersheaders 应该是 ="SOAPAction"。

试试这个。

<access-policy>  
<cross-domain-access>
<policy>
<allow-from http-request-headers="SOAPAction">
<domain uri="http://*"/>
<domain uri="https://*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>

如需进一步引用,请查看 this post由蒂姆豪雅

关于silverlight - 为什么我的 Silverlight 客户端在切换到 SSL 时找不到 clientaccesspolicy 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1228417/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com