无法加载资源:net :: ERR_INSECURE_RESPONSE [英] Failed to load resource: net::ERR_INSECURE_RESPONSE

查看:3813
本文介绍了无法加载资源:net :: ERR_INSECURE_RESPONSE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法欺骗服务器,所以我没有收到这个错误:

IS there a way to trick the server so I don't get this error:

内容被阻止,因为它没有被有效的安全证书签名。

Content was blocked because it was not signed by a valid security certificate.

我正在将一个html网站的iframe拉到另一个网站,但我在这个问题的标题中不断出现控制台(chrome)错误,并在Internet Explorer中说:

I'm pulling an iframe of an html website into another website but I keep getting the console (chrome) error in the title of this question and in internet explorer it says:

内容已被屏蔽,因为它未经有效的安全证书签名。

Content was blocked because it was not signed by a valid security certificate.

推荐答案

您的资源可能使用HTTPS协议上的自签名SSL证书。
Chromium,因此谷歌浏览器默认阻止这种资源被认为是不安全的。

Your resource probably use a self-signed SSL certificate over HTTPS protocol. Chromium, so Google Chrome block by default this kind of resource considered unsecure.

你可以这样绕过这个:


  • 假设您的框架的网址是 https://www.domain.com ,请在Chrome中打开一个新标签页并转到 https://www.domain.com

  • Chrome会要求您接受SSL证书。接受它。

  • 然后,如果你用你的框架重新加载页面,你可以看到它现在可以正常工作

  • Assuming your frame's URL is https://www.domain.com, open a new tab in chrome and go to https://www.domain.com.
  • Chrome will ask you to accept the SSL certificate. Accept it.
  • Then, if you reload your page with your frame, you could see that now it works

您可以猜到的问题是,您网站的每位访问者都必须执行此任务才能访问您的框架。

The problem as you can guess, is that each visitor of your website has to do this task to access your frame.

您可以注意到Chrome将会阻止你的每个导航会话的URL,而chrome可以永远记住你信任这个域。

You can notice that chrome will block your URL for each navigation session, while chrome can memorise for ever that you trust this domain.

如果你的框架可以通过HTTP而不是HTTPS访问,我建议你使用它,所以这个问题将得到解决。

If your frame can be accessed by HTTP rather than HTTPS, I suggest you to use it, so this problem will be solved.

这篇关于无法加载资源:net :: ERR_INSECURE_RESPONSE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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