zjs 1 месяц назад
Родитель
Сommit
3b7aab6f42

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

@@ -30,9 +30,8 @@ public class RestCorsFilter implements Filter {
30 30
         if(allowedOrigins.contains(originHeader)){
31 31
             response.setHeader("Access-Control-Allow-Origin",originHeader);
32 32
         }else{
33
-            response.setHeader("Access-Control-Allow-Origin","https://***.***.com");
33
+            response.setHeader("Access-Control-Allow-Origin","http://10.152.72.7");
34 34
         }
35
-        response.setHeader("Access-Control-Allow-Origin", "http://10.152.72.7"); // 可写成受信任的站点
36 35
         response.setHeader("Access-Control-Allow-Credentials","true");
37 36
         response.setHeader("Access-Control-Allow-Methods", "POST, GET,DELETE,PUT");
38 37
         response.setHeader("Access-Control-Max-Age", "31536000");