Преглед на файлове

漏洞修复 添加域名

zjs преди 1 месец
родител
ревизия
4a1e5719ac
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      ruoyi-common/src/main/java/com/ruoyi/common/filter/RestCorsFilter.java

+ 1 - 1
ruoyi-common/src/main/java/com/ruoyi/common/filter/RestCorsFilter.java

@@ -24,7 +24,7 @@ public class RestCorsFilter implements Filter {
24 24
         HttpServletResponse response = (HttpServletResponse) res;
25 25
         HttpServletRequest request = (HttpServletRequest) req;
26 26
 
27
-        String[] allowDomain={"http://10.152.72.*","http://10.152.70.*"};
27
+        String[] allowDomain={"http://10.152.72.*","http://10.152.70.*","*.connc"};
28 28
         Set<String> allowedOrigins=new HashSet<>(Arrays.asList(allowDomain));
29 29
         String originHeader=request.getHeader("Origin");
30 30
         if(allowedOrigins.contains(originHeader)){