AJAX https 和 SSL 验证错误
我有一个通过 AJAX 加载 div 的页面。 AJAX POST 调用是通过 https 协议从协议也是 https 的页面进行的。
如果我访问直接加载到 div 中的页面,则不存在 SSL 问题。如果我在加载 div 之前访问父页面,则不会出现 SSL 问题。仅当我单击链接加载 div 内的内容时,才会发生该错误。突然,SSL 证书出现错误。在 Firefox 中,我得到以下信息:“连接部分加密”
什么部分加密?该页面是通过 https 获取的,父级是 https,两者本身都没有问题......
我不明白。
I have a page that loads a div via AJAX. The AJAX POST call is made in https from a page with the protocol also https.
If I visited the page being loaded into the div directly, there are no SSL issues. If I visit the parent page before loading the div, there are no SSL issues. The error only occurs when I click a link to load the content inside the div. Suddenly, there is an error with the SSL Cert. In firefox I get the following info: "Connection partially encrypted"
What's partially encrypted? The page is fetched via https, the parent is https, both have no problems on their own...
I don't get it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@durilai:
想通了。在使用 http 协议的 ajax 调用期间使用了加载图像。它没有出现,因为它加载得太快了。在 JavaScript 中找到了它。
::摇头::
@durilai:
Figured it out. There was a loading image being used during the ajax call that used the http protocol. It didn't appear because it loaded so quickly. Found it in the javascript.
::shakes head::