Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stefan van Leusden 21 posts 73 karma points
    Sep 21, 2017 @ 08:28
    Stefan van Leusden
    0

    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

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Sep 21, 2017 @ 08:58
    Lee Kelleher
    1

    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

  • Stefan van Leusden 21 posts 73 karma points
    Sep 26, 2017 @ 13:18
    Stefan van Leusden
    0

    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

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Sep 26, 2017 @ 14:01
    Lee Kelleher
    0

    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

  • Martin Aguirre 42 posts 210 karma points
    Sep 26, 2017 @ 15:42
Please Sign in or register to post replies

Write your reply to:

Draft