[OpenLayers-Users] GetFeatureInfo works in IE, not FF, beginner wonders why.

Jana Golinowski jgolinowski at codematix.de
Fri Dec 4 05:58:23 EST 2009


Hi,

> The issue is the GetFeatureInfo request. Now, I've seen this referred to
> before in this forum, but always when the viewer pages have been hosted on
> some webserver. Currently, mine is not published anywhere, it's just sitting
> in a file on the same machine as the GeoServer is running on.

> FF 3.0.15's error console reports (roughly translated) : "Security fault:
> contents of file (path to the local html-file) isn't allowed to fetch data
> from
> http://localhost:8080/geoserver/wms?LAYERS=sweden_ways&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A3006&BBOX=106524.93608%2C6533250.45206%2C1087113.063921%2C7268691.54794&X=723&Y=385&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=sweden_ways&WIDTH=900&HEIGHT=675."
> and the 'loading' message in the div remains forever.

That sounds like you are not using any webserver (except for your GeoServer). Those security restrictions apply to local files also.

You will have to deploy your local file to your webserver running on localhost:8080.


Greetings, Jana.



More information about the Users mailing list