如何解决“尝试从未经身份验证的源加载脚本的页面" [英] How to fix "page trying to load scripts from unauthenticated source"

查看:68
本文介绍了如何解决“尝试从未经身份验证的源加载脚本的页面"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在包含广告脚本的PHP页面中解决此问题?

How can I fix this in my PHP page that contains ad scripts?

我添加了脚本.在HTTP上运行正常,但是在我将网站切换到HTTPS之后,什么也没出现.

I have added scripts. It worked fine in HTTP but after I switched my site to HTTPS, nothing is appearing.

这是开发控制台中的错误:

This is the error in dev console:

无法加载资源:服务器响应状态为404(未找到)index.php:1

Failed to load resource: the server responded with a status of 404 (Not Found) index.php:1

混合内容:'https://myrevenuebank.com/index.php'上的页面已通过HTTPS加载,但请求了不安全的脚本'http://resources.infolinks.com/js/infolinks_main.js'.该请求已被阻止;内容必须通过HTTPS提供.

Mixed Content: The page at 'https://myrevenuebank.com/index.php' was loaded over HTTPS, but requested an insecure script 'http://resources.infolinks.com/js/infolinks_main.js'. This request has been blocked; the content must be served over HTTPS.

<script type="text/javascript">
  var infolinks_pid = 2735394;
  var infolinks_wsid = 0;
</script>
<script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js"></script>

推荐答案

单击视图>开发人员> JavaScript控制台.向我们发送您在开发人员控制台中遇到的错误.尝试在脚本链接中使用https而不是http.您也可以尝试下载脚本并将其放入服务器中.

click View > Developer > JavaScript Console. Send us what errors you have in developer Console. try to use https rather than http in script link. also you can try to download the script and put it in your server.

  1. menu.css(缺少文件)上有404
  2. 您正在从https网站加载http脚本.更改 http://resources.infolinks.com/js/infolinks_main.js https://resources.infolinks.com/js/infolinks_main.js

这篇关于如何解决“尝试从未经身份验证的源加载脚本的页面"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆