Google maps widget - not secure?

Use this board to ask questions or have discussions with other Genie users.
Post Reply
rasaro
Profound User
Posts: 60
Joined: Tue Mar 17, 2015 12:48 pm
First Name: Rick
Last Name: Asaro
Company Name: MISD
Country: United States
Contact:

Google maps widget - not secure?

Post 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.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Google maps widget - not secure?

Post by Scott Klement »

I haven't run into this before. What is the exact error that you're receiving?
rasaro
Profound User
Posts: 60
Joined: Tue Mar 17, 2015 12:48 pm
First Name: Rick
Last Name: Asaro
Company Name: MISD
Country: United States
Contact:

Re: Google maps widget - not secure?

Post 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?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Google maps widget - not secure?

Post 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.
rasaro
Profound User
Posts: 60
Joined: Tue Mar 17, 2015 12:48 pm
First Name: Rick
Last Name: Asaro
Company Name: MISD
Country: United States
Contact:

Re: Google maps widget - not secure?

Post by rasaro »

Yes, we are running Profound UI over SSL. Isn't that the standard practice?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Google maps widget - not secure?

Post 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.
rasaro
Profound User
Posts: 60
Joined: Tue Mar 17, 2015 12:48 pm
First Name: Rick
Last Name: Asaro
Company Name: MISD
Country: United States
Contact:

Re: Google maps widget - not secure?

Post by rasaro »

Easy change. Thanks Scott.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest