java Spring後臺如何解決跨域請求

最近在用H5開發遊戲一個小遊戲,後臺使用Java寫的,調試過程當中出現了以下錯誤:html XMLHttpRequest cannot load http://localhost:8080/getname. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is t
相關文章
相關標籤/搜索