首页 > 技术文章 > 跨域访问
SeaWxx 2018-06-04 11:17 原文
获取对象 HttpServletResponse response
在接口开始加上这么一行代码即可
response.addHeader("Access-Control-Allow-Origin","*");