Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/370.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Geoserver是否不允许跨域数据访问(getFeatureInfo)?_Java_Tomcat_Cross Domain_Shapefile_Geoserver - Fatal编程技术网

Java Geoserver是否不允许跨域数据访问(getFeatureInfo)?

Java Geoserver是否不允许跨域数据访问(getFeatureInfo)?,java,tomcat,cross-domain,shapefile,geoserver,Java,Tomcat,Cross Domain,Shapefile,Geoserver,我的Geoserver在端口8080上运行(使用tomcat 7)&我的应用程序在8084上运行,使用不同的服务器(tomcat 6)。 shapefile正在正常查看,但单击事件时没有功能信息,它始终处于等待模式。 如果我使用相同的端口和服务器来运行geoserver和应用程序,那么一切都正常工作就没有问题。 但我的要求是在不同的端口上运行应用程序和geoserver 是否可以发出跨域请求?因为我的请求被Geoserver拒绝。最好对Geoserver和应用程序使用相同的tomcat端口。并参

我的Geoserver在端口8080上运行(使用tomcat 7)&我的应用程序在8084上运行,使用不同的服务器(tomcat 6)。 shapefile正在正常查看,但单击事件时没有功能信息,它始终处于等待模式。 如果我使用相同的端口和服务器来运行geoserver和应用程序,那么一切都正常工作就没有问题。 但我的要求是在不同的端口上运行应用程序和geoserver


是否可以发出跨域请求?因为我的请求被Geoserver拒绝。

最好对Geoserver和应用程序使用相同的tomcat端口。并参考此链接

Hey@shankaj,我确实这么做了,但我的要求是在不同的服务器上运行我的应用程序&在不同的服务器上运行geoserver。