My site use HTTPS instead of HTTP, however the google map block request is using HTTP, which leads to a error in the browser:

Mixed Content: The page at 'https://www.mysite.com' was loaded over HTTPS, but requested an insecure script 'http://maps.googleapis.com/maps/api/js?key=myapikey'. This request has been blocked; the content must be served over HTTPS.

It would be nice to have a configurable option to use HTTPS mode (e.g a checkbox) in admin/structure/gmap-location/settings.

Comments

lvbeck created an issue. See original summary.

lvbeck’s picture

I've made a quick patch by replacing all http request to https request, it should work for both http and https sites.

lvbeck’s picture

Status: Active » Needs review
b n pandey’s picture

Hi lvbeck,

Thanks for the patch. I am working on this issue.

Thanks
BN Pandey

b n pandey’s picture

Status: Needs review » Fixed

Hi lvbeck,

Thanks for identifying this issue. Currently I am adding your patch in dev version and I will add new feature for configurable option to use HTTPS and HTTP mode.

Thanks
BN Pandey

b n pandey’s picture

Status: Fixed » Closed (fixed)