0
点赞
收藏
分享

微信扫一扫

控制台Mixed Content 多种解决办法

蛇发女妖 2022-04-20 阅读 55
前端

Mixed Content: The page at ‘https://xxxxx.com/dashboard’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://xxxxxx/api-sys/sys/account/getMenuList?id=5a1dc8c8191d4921b84cef55204ae67c’. This request has been blocked; the content must be served over HTTPS.

在这里插入图片描述

解决方案一:

网站head标签中添加下面内容,自动将http的不安全请求升级为https

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

edge浏览器解决办法:

在这里插入图片描述
在此网站权限单击之后的页面,将不安全的内容设置为允许就可以了。
在这里插入图片描述

Google浏览器解决办法:

在这里插入图片描述
在这里插入图片描述

举报

相关推荐

0 条评论