I have created a web based GIS using Geoserver-Postgis-Openlayers...
Every thing was working fine till I changed the server path from 'Testing to LIVE.'
WMS POP up Function has stopped working in LIVE Server Environment & showing the following error message..
"Message: Access is denied.
Line: 177 ; Char: 9 ; Code: 0 ; URI: ....../geoserver/OpenLayers-2.8/lib/OpenLayers/Request/XMLHttpRequest.js "
WMS Pop Up code is as follows (Working perfectly at my Test Server)
info = new OpenLayers.Control.WMSGetFeatureInfo({
url: '..../geoserver/LT_WEB/wms',
title: 'Identify features by clicking',
queryVisible: true,
eventListeners: {
getfeatureinfo: function(event) {
map.addPopup(new OpenLayers.Popup.FramedCloud(
"",
map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
));
}
}
});
map.addControl(info);
info.activate();
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToMaxExtent();
SERVER - Microsoft Windows 2003 R2. Web Browser - Internet Explorer 8.0.
In both Servers (Testing & LIVE) GeoServer, PostGIS and OpenLayers 2.8 installed and all paths verified.
Awaiting for your valued response.