https网站调用http接口问题

https网站调用http接口问题

如果出现这种问题,就要升级http接口的域名升级SSL证书

前端代码处理

  1. 所有的http接口改成https
  2. 页面的head中加入:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
posted @ 2022-03-21 17:14  liuhuayiye  阅读(1464)  评论(0编辑  收藏  举报