Commit a1d883d72c8d764659a30658f41f7c5b2662ccc4

Authored by cfl
1 parent 7e45857a0e
Exists in master and in 2 other branches dev, luanping

增加跨域设置

Showing 1 changed file with 1 additions and 0 deletions

platform-common/src/main/java/com/lyms/platform/common/utils/ResultUtils.java View file @ a1d883d
... ... @@ -110,6 +110,7 @@
110 110 response.setContentType("application/json;charset=UTF-8");
111 111 response.setCharacterEncoding("UTF-8");
112 112 response.setHeader("Cache-Control", "no-cache");
  113 + response.setHeader("Access-Control-Allow-Origin","*");
113 114 try {
114 115 PrintWriter out = response.getWriter();
115 116 out.print(json);