http请求https报错:Mixed Content: The page at ‘xxx‘ was loaded over HTTPS, but requested an insecure...
在我们的网站<head>标签里面加入如下内容即可,它会自动将HTTP请求升级成安全的HTTPS请求,网上的很多解决方法有问题
一下方法亲测可解决问题:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">