最近做一个H5项目,嵌入到合作放的app里,但要求用https的方式,之前项目都是按http做的,所以要改引入的话有些地方改不了,比如外部的图片,这样导致用http引入的图片不会显示,经客户端联调发现有如下报错:
04-17 19:52:50.051: Iromium(4453): [INFO:CONSOLE(0)] "Mixed Content: The page at 'https://q.51...g%3D' was loaded over HTTPS, but requested an insecure image '[img]file:///C:\Users\h5\AppData\Local\Temp\[5UQ[BL(6~BS2JV6W}N6[%S.png[/img]http://m.zhcw.com/upload/resources/image/2017/04/14/562272.png'. This request has been blocked; the content must be served over HTTPS.", source: https://q.51...g%3D
解决方案: