关于Safari浏览器报错:Failed to load resource: 发生SSL错误,无法建立到该服务器的安全连接

报错信息:

  • Failed to load resource: 发生SSL错误,无法建立到该服务器的安全连接 XMLHttpRequest cannot

  • load https://xxxxxxx due to access control checks.

具体如图下:

原因是:页面上的http请求变了https请求
在这里插入图片描述

解决办法:

将页面中的下面这行代码注释掉

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

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>