原文:解决Tomcat错误信息:No 'Access-Control-Allow-Origin' header is present on the requested resource | Solving Tomcat Error: No 'Access-Control-Allow-Origin' header is present on the requested resource

最近在使用GeoServer调用Vector Tile服务时,经常会显示不出来结果。打开浏览器调试台,发现报No Access Control Allow Origin header is present on the requested resource这个错误。主要原因是不能跨域访问。例如服务器上有两个服务A和B,A的端口是 ,B的端口是 ,则A不能直接调用B的端口。为了解决这个问题,通过上网 ...

2017-11-23 14:46 1 6807 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM