Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 混合成分:铬阻塞<;img>;在我的网站上,但不是_Html_Mixed Content - Fatal编程技术网

Html 混合成分:铬阻塞<;img>;在我的网站上,但不是

Html 混合成分:铬阻塞<;img>;在我的网站上,但不是,html,mixed-content,Html,Mixed Content,我有一个HTTPS站点,它从HTTP RSS提要加载内容。尝试加载图像时,Chrome/Firefox会通过以下消息阻止图像: Mixed Content: The page at 'mysite.com/index.php' was loaded over HTTPS, but requested an insecure image 'http://www.example.com/2017021411050.jpg'. This request has been blocked; **the

我有一个HTTPS站点,它从HTTP RSS提要加载内容。尝试加载图像时,Chrome/Firefox会通过以下消息阻止图像:

Mixed Content: The page at 'mysite.com/index.php' was loaded over HTTPS, but requested an insecure image 'http://www.example.com/2017021411050.jpg'. This request has been blocked; **the content must be served over HTTPS**. 混合内容:“mysite.com/index.php”页面通过HTTPS加载,但请求的图像不安全”http://www.example.com/2017021411050.jpg'. 此请求已被阻止**内容必须通过HTTPS**提供。 然而,如果我在Feeldy中加载相同的提要,我可以看到所有的图像,尽管Feelly的站点也是通过HTTPS加载的。在Feedly情况下,浏览器仅显示一条警告:

The page at 'https://feedly.com/i/subscription/feed/http://www.example.com/rss.php' was loaded over HTTPS, but requested an insecure image 'http://www.example.com/2017021411050.jpg'. **This content should also be served over HTTPS**. 页面位于'https://feedly.com/i/subscription/feed/http://www.example.com/rss.php'已通过HTTPS加载,但请求了不安全的映像'http://www.example.com/2017021411050.jpg'. **此内容还应通过HTTPS**提供。
为什么Feedly可以绕过混合内容块,在我得到块时只得到一个警告?

解析RSS提要时,您也在检索图像URL

假设图像url为

您将此URL重写为


现在,浏览器总是通过https发出请求,您可以摆脱这些问题。

Firefox和chrome都是安全的浏览器,但我不确定Feedly到底是什么。 Firefox和chrome阻止了他们,因为他们认为在HTTP网站中加载HTTP图像是不安全的,但Feedly并不在意,所以他认为只需发出警告就足够了。 但我知道一个解决办法 例如,您得到了这个URL

http://otherdomain.com/image.jpg
这是一个HTTP,然后您可以像

https://example.com/imageserver?url= //here put your image url
这个技巧会让浏览器认为你是通过HTTPS URL加载图像,如下所示

https://example.com/imageserver?url=http://otherdomain.com/image.jpg&hash=abcdeafad

我知道MC和浏览器是如何工作的,但关键是为什么Feedly(一个在线RSS阅读器,也就是像我这样的web应用程序)能够在短时间内获得HTTP图像,而对于同一个图像,我会得到一个块。他们用什么技术绕过封锁?这是我答案的复制粘贴lmaooh melvin Koopmans我是新来的,我猜我们在同一时间发布了相同的答案,因为在我回答这个问题的时候,没有其他答案,所以我为重复的答案道歉。谢谢你的回答,但不要问这个问题。问题是关于Feedly绕过MC块的技术。Feedly看起来不像是图像的代理。@AitorF所以图像的src是http://,并且在使用HTTPS加载时不会出现任何混合内容错误??对!在Feedly中,但在我的例子中,我得到了一个很大的红色错误。