使用openlayers加载wmts方式加载IServer发布的WMTS服务,当数据源参数中的crossOrigin参数设置为anonymous时,会出现跨域问题。跨域原因是后台接口的响应头中存在多个Access-Control-Allow-Origin。
Access to image at '' from origin '' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.