自2018年10月18日起,高德开发者论坛除车机板块外,其他板块将停止发帖与维护,如您有使用问题请 提交工单 联系我们,感谢您的理解。

查看: 208|回复: 0
打印 上一主题 下一主题

[报错] 【BUG】https方式加载,但部分图片由http加载

[复制链接]
最佳答案
0 

1

主题

1

帖子

7

积分

新手上路

Rank: 1

积分
7
跳转到指定楼层
楼主
发表于 2017-9-7 15:16:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
发表帖子
API/SDK版本号: 1.4
产品: 2D地图
手机型号:
使用接口: Javascript
本帖最后由 九龙在天9 于 2017-9-7 15:18 编辑

使用以下方式加载:
https://webapi.amap.com/maps?v=1.4.0&key=xxx
执行plugin脚本:
            map.plugin(["AMap.ToolBar", "AMap.Scale", "AMap.OverView"],
                function() {
                    map.addControl(new AMap.ToolBar());
                    map.addControl(new AMap.Scale());
                    map.addControl(new AMap.OverView({ isOpen: true }));
                }
            );


但是部分图片是用http方式加载的,如下:
https://mydomain.com/contact-us' was loaded over HTTPS, but requested an insecure image 'http://webapi.amap.com/theme/v1.3/mapcontrols.png'. This content should also be served over HTTPS.
contact-us:1 Mixed Content: The page at 'https://mydomain.com/contact-us' was loaded over HTTPS, but requested an insecure image 'http://webapi.amap.com/theme/v1.3/map_view.png'. This content should also be served over HTTPS.
contact-us:1 Mixed Content: The page at 'https://mydomain.com/contact-us' was loaded over HTTPS, but requested an insecure image 'http://webapi.amap.com/theme/v1.3/toolbar_rbg.png'. This content should also be served over HTTPS.
2contact-us:1 Mixed Content: The page at 'https://mydomain.com/contact-us' was loaded over HTTPS, but requested an insecure image 'http://webapi.amap.com/theme/v1.3/map_view.png'. This content should also be served over HTTPS.
contact-us:1 Mixed Content: The page at 'https://mydomain.com/contact-us' was loaded over HTTPS, but requested an insecure image 'http://webapi.amap.com/theme/v1.3/sharp.png'. This content should also be served over HTTPS.



应该修正为: 所有资源应该通过https方式加载。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|小黑屋|高德开发者论坛

Copyright ©2014 高德开发者论坛.All Rights Reserved |京ICP证070711号

意见反馈 常见问题 服务条款 联系我们
快速回复 返回顶部 返回列表