Since the CMS is using HTTPS the GoogleMaps script is blocked and the functions can't be used.
Mixed Content: The page at 'https://www.domain.com/umbraco/umbraco.aspx#content' was loaded over HTTPS, but requested an insecure script 'http://maps.google.com/maps/api/js?v=3.8&sensor=false&callback=UmbracoGoogleMapMapDataType.guiMap&_=1505982211110'. This request has been blocked; the content must be served over HTTPS.
Strangely it's set to start with "//" so it should load in via HTTPS if that's what the back-office is running on.
The fix would be to change that to be "https://".
Unfortunately I'm not actively maintaining this package anymore, but the source-code is available on GitHub for you ... and if any fixes/amends are submitted, I'm happy to review/merge in.
To my knowledge, it should be fine. I don't think there were any breaking changing in the minor releases. But of course, the usual "back up your database" before upgrading is a safe bet :-)
Script blocked in CMS when using HTTPS in CMS
Hi,
Since the CMS is using HTTPS the GoogleMaps script is blocked and the functions can't be used.
Mixed Content: The page at 'https://www.domain.com/umbraco/umbraco.aspx#content' was loaded over HTTPS, but requested an insecure script 'http://maps.google.com/maps/api/js?v=3.8&sensor=false&callback=UmbracoGoogleMapMapDataType.guiMap&_=1505982211110'. This request has been blocked; the content must be served over HTTPS.
Any tips how to make the 'http' part 'https'?
Umbraco version: 4.9.1 Installed package version: 2.0.5
Cheers, Stefan
Hi Stefan,
The line of code that loads in the Google Maps API script is here:
https://github.com/leekelleher/umbraco-google-maps/blob/master/Our.Umbraco.GoogleMaps/DataTypes/SingleLocation/SingleLocation.js#L308
Strangely it's set to start with "
//
" so it should load in via HTTPS if that's what the back-office is running on.The fix would be to change that to be "https://".
Unfortunately I'm not actively maintaining this package anymore, but the source-code is available on GitHub for you ... and if any fixes/amends are submitted, I'm happy to review/merge in.
Cheers,
- Lee
Hi Lee,
Is it safe (no content loss / breaking changes) if we upgrade from 2.0.5 to 2.1.0 ? I saw this was fixed in 2.0.6.
Thanks in advance! Stefan
Hi Stefan,
To my knowledge, it should be fine. I don't think there were any breaking changing in the minor releases. But of course, the usual "back up your database" before upgrading is a safe bet :-)
Cheers,
- Lee
Hi. Use the https version of google api
https://developers.google.com/maps/documentation/javascript/tutorial
is working on a reply...