且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过HTTPS加载页面但请求不安全的XMLHttpRequest端点

更新时间:2022-06-24 15:10:15


我是什么可以解决这个问题(除了安装真正的SSL证书)。

What I can do to fix this (other than installing a real SSL certificate).

你不能。

在https网页上,您只能向https网页发出AJAX请求(使用浏览器信任的证书,如果您使用自签名证书,则无法使用为您的访客)

On an https webpage you can only make AJAX request to https webpage (With a certificate trusted by the browser, if you use a self-signed one, it will not work for your visitors)