1

I'm trying to simple load a page with a generic google maps v3 using gwt and jsni and I'm getting this error in the console:

Refused to display document because display forbidden by X-Frame-Options.

I think that the problem is that the browser refuses to load the page so I have to load the page differently but I can´t find the solution, I'm stuck with this problem!

My code:

public void onModuleLoad() {
    initialize();
}
native void initialize() /*-{
    var mapOptions = {
        center: new $wnd.google.maps.LatLng(-34.397, 150.644),
        zoom: 8,
        mapTypeId: $wnd.google.maps.MapTypeId.ROADMAP
    };
    var map = new $wnd.google.maps.Map($doc.getElementById("map_canvas"), mapOptions);  
}-*/;
Eliran Malka
  • 15,305
  • 5
  • 75
  • 98
  • most likely that the problem does not originate from the JSNI or Google Maps sections in your code. see [this post on the subject](http://stackoverflow.com/questions/6666423/overcoming-display-forbidden-by-x-frame-options). – Eliran Malka Sep 14 '12 at 22:52

0 Answers0