我在 Openlayer 中加载 FeatureInfo 弹出窗口时出错?我该如何解决?

问题描述 投票:0回答:0

console error info

访问访问'http://localhost:8080/geoserver/PostGISSQL/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=PostGISSQL%3AIndia_Districts&LAYERS=PostGISSQL%3AIndia_Districts&FORMATI=s&%2LED= 93&J=10&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=8140237.764258131%2C2504688.542848654%2C8766409.899970295%2C3130860.678560818' from origin 'http://localhost:8082' has been blocked by CORS policy: No 'Access-请求的资源上存在 Control-Allow-Origin' 标头。如果不透明响应满足您的需求,请将请求的模式设置为“no-cors”以在禁用 CORS 的情况下获取资源。

javascript cors openlayers geoserver
© www.soinside.com 2019 - 2024. All rights reserved.