Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When on a site that uses HTTPS there is an embeded google maps that uses the geofield_maps module
the site will responde sayingthe page contains insecure content.
As on the Google maps documentation (https://developers.google.com/maps/documentation/javascript/tutorial#Loa...)
it says that in this case you should use
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE"
type="text/javascript"></script>
instead of
<script src="http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE"
type="text/javascript"></script>
Comment | File | Size | Author |
---|---|---|---|
#2 | geofield-1615938-2.patch | 1.61 KB | k_zoltan |
#1 | geofield-1615938-1.patch | 1.99 KB | k_zoltan |
Comments
Comment #1
k_zoltan CreditAttribution: k_zoltan commentedNow here is a patch for that ... now this is for the version 1.x-dev but maybe I could do it for the 2.x version too
Comment #2
k_zoltan CreditAttribution: k_zoltan commentedHere is another try with the help of nod_
instead of trying to figure out if we are using HTTPS or not we use URI scheme http://en.wikipedia.org/wiki/URI_scheme
Comment #3
Brandonian CreditAttribution: Brandonian commentedThanks for the patch, @k_zoltan! Committed.
7.x-1.x - http://drupalcode.org/project/geofield.git/commit/8263a05
7.x-2.x - http://drupalcode.org/project/geofield.git/commit/e7bcb26
Comment #4.0
(not verified) CreditAttribution: commentedsite log message update