2017-01-11 13 views
-1

私はgitページに自分の履歴書を入れようとしています.GoogleマップAPIが含まれています。サーバーがなくてもファイルを開くと正常に動作します。しかし、私はそれは私にエラーをスロー私のgitのハブページにそれを実行すると:Google Maps APIとGithubページ

Mixed Content: The page at ' https://jcook894.github.io/My_Resume/ ' was loaded over HTTPS, but requested an insecure script "' http://maps.googleapis.com/maps/api/js?libraries=places&key=XXXXXXXXXXXXXXXXXXXXXX '". This request has been blocked; the content must be served over HTTPS.

し、このエラー:

helper.js:121 Uncaught ReferenceError: google is not defined at initializeMap

は私のAPIキーと間違って何かが、それはを通過イマイチということはありますか?

答えて

1

をちょうどHTTPS上でGoogleマップをロードし、混合コンテンツに問題を解決するには忘れてしまった実現:GitHubのページのための詳細については

https://maps.googleapis.com/maps/api/js?libraries=places&key=XXXXXX 

を混合コンテンツはthe documentationを参照してください。

0

気にしないで、ちょうど私がhttpsにSを追加する-_-