Page 1 of 1
Google maps widget - not secure?
Posted: Sat Sep 19, 2015 8:41 am
by rasaro
I added the google maps widget to a screen and when I pull this screen up in my browser it wants me to change my security settings. Is this just a browser thing or can something be changed with the Google maps widget? Thanks, Rick.
Re: Google maps widget - not secure?
Posted: Mon Sep 21, 2015 4:39 pm
by Scott Klement
I haven't run into this before. What is the exact error that you're receiving?
Re: Google maps widget - not secure?
Posted: Tue Sep 22, 2015 7:16 am
by rasaro
Scott, this is the error from Mozilla. Blocked loading mixed active content "
http://maps.google.com/maps?hl=enl&q=44 ... tput=embed"[Learn More] googlemaps.js:59:0
IE displays a message asking permission to allow unsecure content to be displayed?
Re: Google maps widget - not secure?
Posted: Tue Sep 22, 2015 10:14 am
by Scott Klement
Are you running Profound UI over an SSL connection? This sounds like the error message you get when you mix SSL and non-SSL content in the same page.
Re: Google maps widget - not secure?
Posted: Tue Sep 22, 2015 11:26 am
by rasaro
Yes, we are running Profound UI over SSL. Isn't that the standard practice?
Re: Google maps widget - not secure?
Posted: Tue Sep 22, 2015 12:15 pm
by Scott Klement
I'd say, maybe 30% of our customers use SSL. (That's a guess, I don't know for sure.) So it's very commonplace. However, I have not been asked about using the "Google Maps Widget" with SSL before.
The Google Maps widget is provided as a "sample" of how to create a widget. Honestly, this widget doesn't do very much -- you could easily use the iframe widget instead of the Google Maps widget, and accomplish the same thing very easily.
But, you do have the source code for the Google Maps widget. So, if you need to use SSL, you should be able to change the widget to use SSL as well. The widget is located in the IFS here:
Code: Select all
/www/profoundui/htdocs/profoundui/userdata/custom/widgets/googlemaps.js
(If you installed PUI in a different location, replace "/www/profoundui" with the appropriate location.)
Edit that file (I use RDi for this) and look for the line like this:
Code: Select all
var url = "http://maps.google.com/maps?hl=enl ....etc... more code after this ...
Change that from "
http:" to "
https:" and save your changes. Clear the browser's cache and try your application again.
Re: Google maps widget - not secure?
Posted: Tue Sep 22, 2015 2:25 pm
by rasaro
Easy change. Thanks Scott.