标签:article let resource ajax跨域 string eth int blank .json
No ‘Access-Control-Allow-Origin‘ header is present on the requested resource. Origin
参考https://blog.csdn.net/zhoucheng05_13/article/details/53580683
@ResponseBody @GetMapping("/userSource.json") public Object userSource(String search,HttpServletResponse response) { System.out.println(search); response.setHeader("Access-Control-Allow-Origin", "*"); return getUserSourceService().findAll(); }
标签:article let resource ajax跨域 string eth int blank .json
原文地址:https://www.cnblogs.com/black-/p/8969008.html