構建與OL-銫一個應用程序,這取決於WMS,可能發生跨源錯誤:代理對WMS層
"Image from origin 'http://www.ifremer.fr' has been blocked
from loading by Cross-Origin Resource Sharing policy:
No 'Access-Control-Allow-Origin' header is present on
the requested resource. Origin 'http://localhost:8080'
is therefore not allowed access"
我沒有設置所使用的WMS CORS頭中的能力(像這裏建議的https://github.com/openlayers/ol3-cesium/issues/127)。
它看起來像一個代理可以設置在銫水平(見https://cesiumjs.org/2013/01/04/Cesium-Imagery-Layers-Tutorial/)。
它可以設置在OL級別,以便它在銫水平上設置它?如果是,如何?