在本地新建一个项目,并基于iClient3D for webGL打开iServer三维场景,出现跨域问题,请问如何解决?
viewer = new Cesium.Viewer('sceneControlDiv',{
navigation: true,
fullscreenButton: true
});
scene = viewer.scene;
widget = viewer.cesiumWidget;
var promise = scene.open('http://localhost:8090/iserver/services/3D-ChinaProvinces/rest/realspace');
XMLHttpRequest cannot load http://localhost:8090/iserver/services/3D-ChinaProvinces/rest/realspace/datas.json. The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'http://zhanglihong:8080' is therefore not allowed access.