【发布时间】:2026-01-26 02:05:01
【问题描述】:
我正在使用 jQuery 来增强我的前端技能,但我遇到了一个错误,我希望它是由 SSL 证书问题引起的。
我访问了我尝试使用的 API 的原始 url,它在 chrome 中给了我这个警告:
The site's security certificate is not trusted!
You attempted to reach theAPI, but the server presented a certificate issued by an entity that is not trusted by your computer's operating system. This may mean that the server has generated its own security credentials, which Chrome cannot rely on for identity information, or an attacker may be trying to intercept your communications.
这是我使用的基本代码设置(来自here):
<body>
<div class="results"></div>
<script>
$( document ).ready(function() {
$.ajax({
url: "https:theAPI",
cache: false,
success: function(html){
$(".results").append(html);
}
});
});
</script>
</body>
我应该更多地调查我的设置,还是 SSL 证书中存在会阻碍我的有效问题?
【问题讨论】: