且构网

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

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

更新时间:2021-11-24 21:19:28

我能做些什么来解决这个问题(除了安装真正的 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)