我刚刚在我的网站上设置了 SSL https://helloacm.com主页没问题,但是这个 URL https://helloacm.com/milestones/在 Chrome 中浏览显示“该站点使用 SSL,但 Google Chrome 检测到页面上存在不安全的内容。”
我在谷歌上搜索了很多,几乎每篇文章都说我应该将图像、CSS 和链接的所有 http 更改为 https。但我查看了源代码,发现没有对 http://helloacm.com 的引用。任何更多.. 所以我不明白,为什么这个 url 仍然显示错误。
最佳答案
查看控制台。对我来说,它说:
- Mixed Content: The page at 'https://helloacm.com/milestones/' was loaded over HTTPS, but contains a form whose 'action' attribute is 'http://www.google.co.uk/'. This form should not submit data to insecure endpoints.
- Mixed Content: The page at 'https://helloacm.com/milestones/' was loaded over HTTPS, but requested an insecure image 'http://uploadbeta.com/_s/upload/2014/09/04/1137292dd6fbe2b75f1373cb0e3c7a1c.jpg.jpg'. This content should also be served over HTTPS.
- Mixed Content: The page at 'https://helloacm.com/milestones/' was loaded over HTTPS, but requested an insecure image 'http://uploadbeta.com/_s/upload/2014/09/26/eb174fb4bab9f8cba5ef25fb0321234f.jpg'. This content should also be served over HTTPS.
- Mixed Content: The page at 'https://helloacm.com/milestones/' was loaded over HTTPS, but contains a form whose 'action' attribute is 'http://www.google.com/'. This form should not submit data to insecure endpoints.
只需修复此处的错误,该警告就会消失。另外,关于第二个错误:你为什么要请求 .jpg.jpg
?对我来说,这只会降低质量。只需将其更改为 .jpg
。
关于ssl - “The site uses SSL, but Google Chrome has detected insecure content on the page.”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26076201/