将http强制转换为https 将http强制转换为https在html页面中添加下面代码(只在谷歌浏览器面好用) <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"/>