Hey, Rob Yes, I had tried // instead of http:// for the baidu map.
However I found that for baidu map to work in HTTPS a different script should be loaded: https://sapi.map.baidu.com (instead of http://api.map.baidu.com); notice the 'sapi.api' instead of api.map. This was in the official Baidu documentation, however I did not explore the documentation too much since it is written in Chinese and the google translations do not always make sense. Thanks for your support 2015-06-28 6:22 GMT-07:00 Rob R <[email protected]>: > Have you tried //api.map.baidu.com... instead of http://api.map.baidu.com > ? > > > On Wednesday, June 24, 2015 at 7:27:47 PM UTC-5, Jake K. wrote: >> >> Hello, >> >> >> I am trying to load Baidu map in my website which has HTTPS protocol. >> However I get the following error: >> >> >> Mixed Content: The page at *'https://my-website.com >> <https://my-website.com>'* was loaded over HTTPS, but requested an >> insecure >> script*'http://api.map.baidu.com/api?v=2.0&ak=shT00fgF7SPmpGg75s8gWv90&callback=initialize&_=1435191036739 >> <http://api.map.baidu.com/api?v=2.0&ak=shT00fgF7SPmpGg75s8gWv90&callback=initialize&_=1435191036739>'*. >> This request has been blocked; the content must be served over HTTPS >> >> >> I tried to load Baidu with HTTPS protocol but it doesn't work. >> >> >> How can I load Baidu inside a HTTPS website?, or more generally, how can >> I load a script with HTTP inside a HTTPS website? >> >> >> Thank you >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/mkN2-nuMSfY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- JAKE KWON +1 (604) 655 3109 email: [email protected] - My linkedIn <http://ca.linkedin.com/pub/jake-kwon/97/9aa/727/> -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
