原文:解決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