yugalatea / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Could not load secured Google Map #283

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release: 1.0.0

Detailed description:
We are trying to load secure Google Map key. But IE gives secure/nosecure
popup. 

Workaround if you have one:
I change the method of injectJsapi in AjaxLoader.java to workaround this.

Before: 
src = "http://www.google.com/jsapi?" + key
        + "callback=__gwt_AjaxLoader_onLoad";

After:
if (isSecure) {
       src = "https://www.google.com/jsapi?" + key
        + "callback=__gwt_AjaxLoader_onLoad";
    }
    else {
        src = "http://www.google.com/jsapi?" + key
        + "callback=__gwt_AjaxLoader_onLoad";
    }

I passed in isSecure argument for init method:
public static void init(String apiKey, boolean isSecure) {

Links to the relevant GWT Developer Forum posts:

Original issue reported on code.google.com by allhotel...@gmail.com on 16 Jun 2009 at 12:44

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the report.  Another workaround is to load jsapi in your hosted.html 
page
with the https protocol.

Original comment by galgwt.reviews@gmail.com on 16 Jun 2009 at 12:58

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 17 Jul 2009 at 6:28

GoogleCodeExporter commented 9 years ago
Note that you may need to use the noredist.jar of the api you are calling to 
avoid
having the un-modified version of the ajaxloader still in your project

Original comment by Keith.Co...@gmail.com on 11 Aug 2009 at 10:19

GoogleCodeExporter commented 9 years ago
r1563 commits a change that uses the same protocol as was used to load the 
hosted page.

Original comment by zundel@google.com on 16 Dec 2009 at 5:24

GoogleCodeExporter commented 9 years ago
darn, that fix broke file:// urls.  See http://galgwt-reviews.appspot.com/52602

Original comment by zundel@google.com on 17 Dec 2009 at 4:53

GoogleCodeExporter commented 9 years ago
Update committed at r1566

Original comment by zundel@google.com on 17 Dec 2009 at 12:01

GoogleCodeExporter commented 9 years ago

Original comment by piotr.sw...@gmail.com on 14 May 2010 at 9:36