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

RT90 lalahei at gmail.com
Mon Dec 7 11:10:30 EST 2009


Hmm, well, I installed Apache and let it run on localhost:8080, and let it
host my OL html page.
As long as GeoServer is running that port however, the Apache-hosted html is
unreachable, which I guess is logical :p Same port = collision, different
ports = browser policy breach.

I think http://faq.openlayers.org/proxyhost/all/ would help, but I'm unsure
how to employ it: Download script, put into /apache/cgi-bin; edit OL html
page = add "OpenLayers.ProxyHost = "/../cgi-bin/proxy.cgi?url=";" as
seemingly instructed, attempt to access
http://yourdomain.example.com/cgi-bin/proxy.cgi - 404.

I'll ponder this for a bit, for surely they must run on different ports to
begin with?





RT90 wrote:
> 
> Hi,
> ah. I shall not mind IE6 anymore and do as you advice,
> Thanks.
> 
> 
> Jana Golinowski wrote:
>> 
>> 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.
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>> 
>> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/GetFeatureInfo-works-in-IE-not-FF-beginner-wonders-why-tp4111448p4126790.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list