So i am trying to add
Access-Control-Allow-Origin: *
In the Jetty config file, on which the Geoserver is running to receive the contents from popup (which I am not receiving since there is no connection between the 8000 on which my localhost is running and 8080 on which jetty Geoserver is running).
Does anybody have any clue where the Jetty config file is to which I need to add the aboce header?
Code Update
info = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://localhost:8080/geoserver/iPlant/wms',
title: 'Identify features by clicking',
queryVisible: true,
eventListeners: {
getfeatureinfo: function(event) {
map.addPopup(new OpenLayers.Popup.FramedCloud(
"chicken",
map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
));
}
}
});
This is the error I am getting in the developer tool,
XMLHttpRequest cannot load http://localhost:8080/geoserver/iPlant/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=iPlant%3AAllQuebecSpecies&QUERY_LAYERS=iPlant%3AAllQuebecSpecies&STYLES=&BBOX=-115.488281%2C18.984375%2C-25.488281%2C63.984375&FEATURE_COUNT=10&HEIGHT=512&WIDTH=1024&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=478&Y=212. Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin.
