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
相关文章
相关标签/搜索