I am issuing the following wmsfeaturerequest
var info = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://gistest:8080/geoserver/Geostore/wms',
output: 'features',
infoFormat: 'application/gml+xml',
format: new OpenLayers.Format.GML,
eventListeners: {
getfeatureinfo: function (event) {
console.log(event);
console.log(event.features);
console.log(event.text);
}
}
})
map.addControl(info);
info.activate();
It fails and the console tells me its apermissions issue (I think)
SEC7119: XMLHttpRequest for
http://gistest:8080/geoserver/Geostore/wms?LAYERS=Geostore%3ABUS_STOPS,Geostore%3AWards04_region,Geostore%3ATOPOGRAPHICAREA,mastermap&QUERY_LAYERS=Geostore%3ABUS_STOPS,Geostore%3AWards04_region,Geostore%3ATOPOGRAPHICAREA,mastermap&STYLES=,,OS_TopoArea,&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=346822.277897%2C391326.238218%2C346865.80146%2C391369.761782&FEATURE_COUNT=10&HEIGHT=798&WIDTH=798&FORMAT=image%2Fpng&INFO_FORMAT=application%2Fgml%2Bxml&SRS=EPSG%3A27700&X=24&Y=132
required CORS preflight.
localhost:51416
SEC7120: Origin http://localhost:51416 not found in Access-Control-Allow-Origin
header.
localhost:51416
SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.
How do I add my local windows7 pc (http://localhost:51416) to the
Access-Control-Allow-Origin header. - the server is a windows server 2008
machine
Mark
This e-mail and any attachments are confidential. It may contain privileged
information and is intended for the named recipient(s) only. It must not be
distributed without consent. If you are not one of the intended recipients,
please notify the sender immediately and do not disclose, distribute, or retain
this email or any part of it and do not take any action based on it.
Unless expressly stated, opinions in this email are those of the individual
sender, and not of Knowsley MBC. Legally binding obligations can only be
created for, or be entered into on behalf of, Knowsley MBC by duly authorised
officers or representatives.
Knowsley MBC excludes any liability whatsoever for any offence caused, any
direct or consequential loss arising from the use, or reliance on, this e-mail
or its contents. We believe but do not warrant that this e-mail and any
attachments are virus free. You must therefore take full responsibility for
virus checking and no responsibility is accepted for loss or damage arising
from viruses or changes made to this message after it was sent. Knowsley MBC
reserves the right to monitor and/or record all e-mail communications through
its network in accordance with relevant legislation.
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users