was loaded over https, but req
时间: 2023-04-27 21:04:18 浏览: 1443
uested an insecure XMLHttpRequest endpoint 'http://example.com/api'. This request has been blocked; the content must be served over HTTPS.
这个错误提示是因为网页使用了HTTPS协议加载,但是请求的XMLHttpRequest却使用了HTTP协议,因此被浏览器拦截了。解决方法是将请求的地址改为HTTPS协议,或者将整个网站都改为HTTP协议。
相关问题
was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint
当一个页面被加载到HTTPS上,但是请求的资源是通过HTTP加载的,就会出现"was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint"的错误。这是因为HTTPS是一种安全的协议,要求所有的资源请求也必须是通过HTTPS进行的。如果请求的资源不是通过HTTPS加载,就会被浏览器拦截,以确保页面的安全性。
was loaded over HTTPS, but requested an insecure script
这个错误通常是由于在 HTTPS 页面中引用了一个 HTTP 脚本而导致的。浏览器会阻止加载这个脚本,因为这会导致页面的安全性被破坏。
要解决这个问题,你需要将所有的 HTTP 脚本替换为 HTTPS 版本。如果无法找到 HTTPS 版本的脚本,可以尝试在 CDN 上查找。另外,如果你是在本地引用脚本,可以将其下载到本地并使用相对路径引用。
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)