将http强制转换为https

在html页面中添加下面代码
(只在谷歌浏览器面好用)

  1. <meta
  2. http-equiv="Content-Security-Policy"
  3. content="upgrade-insecure-requests"
  4. />