gmap icon indicating copy to clipboard operation
gmap copied to clipboard

HTTPS

Open ldrrp opened this issue 10 years ago • 2 comments

detect if using https and use it instead of http://www.google.com

ldrrp avatar Dec 24 '13 13:12 ldrrp

Not having https support makes the map not load up since browsers will block anything on a page that does not use https on a https enabled page.

ldrrp avatar Dec 24 '13 14:12 ldrrp

Had this problem with a WP theme that happened to use this package. It took ages to trace it down.

There are three URLs in the library that have a hard-coded http: in, for example:

http://www.google.com/mapfiles/marker.png

This caused the page to fail the SSL certificate, making the site look insecure. The fix was simple: remove the http:

//www.google.com/mapfiles/marker.png

There is no need to "detect" whether SSL is in operation for the connection - just give the browser a schema-less URL and the browser will work that out for you.

judgej avatar May 01 '14 21:05 judgej