Google maps not working in https://

后端 未结 6 1386
刺人心
刺人心 2020-12-10 17:02

I am using google maps on http, it is working perfectly fine. But when i installed ssl certificates over the same, it stopped working. It is giving me errors

6条回答
  •  青春惊慌失措
    2020-12-10 17:33

    Check the script inclusion url for google maps and remove the http protocol from the url:

    http://google-maps-utility-library-v3.googlecode.com/svn/trunk/mar...
    

    will become

    //google-maps-utility-library-v3.googlecode.com/svn/trunk/mar...
    

    in this manner the script will be served using the correct protocol (http or, in your case, https)

提交回复
热议问题