Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 icenium 中有一个使用 jquery 调用 rest/json wcf 服务的应用程序。当使用非加密连接 (http) 进行调用时,一切都会正常运行。但是,当我使用 ssl 加密连接 (https) 时,我的所有 ajax 调用都会失败。我认为这与我用来测试的自签名证书有关。
我想知道是否有任何方法可以接受自签名证书。我什至在我的 iPad 上安装了证书,但仍然无法正常工作。
任何帮助将不胜感激。
我不能说这一定适用于 Icenium。但是,我在一个很好的老式 HTML 页面中遇到了 jquery 和自签名证书的相同问题。我发现我必须更改我的 jquery 脚本源以使用 https 而不是 http。然后一切正常。
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.0.3.min.js"></script>