我的页面是 https 的,要加载百度地图.
听说在百度地图 api 网址后加参数 s=1 就可以
//api.map.baidu.com/api?v=1.5&ak=KEY&s=1
但还是不行:
Mixed Content: The page at 'https://www.xxxxxxxxx.com/map.php' was loaded over HTTPS, but requested an insecure script 'http://api.map.baidu.com/getmodules?v=1.5&mod=map,scommon,mapclick,oppc,tile,navictrl,control'. This request has been blocked; the content must be served over HTTPS.
查看百度 js 的代码,发现还是加载了一些 http 的元素
听说在百度地图 api 网址后加参数 s=1 就可以
//api.map.baidu.com/api?v=1.5&ak=KEY&s=1
但还是不行:
Mixed Content: The page at 'https://www.xxxxxxxxx.com/map.php' was loaded over HTTPS, but requested an insecure script 'http://api.map.baidu.com/getmodules?v=1.5&mod=map,scommon,mapclick,oppc,tile,navictrl,control'. This request has been blocked; the content must be served over HTTPS.
查看百度 js 的代码,发现还是加载了一些 http 的元素