loemkie 1 mês atrás
pai
commit
c99e1be0bb

+ 1 - 2
src/main/java/com/qmrb/system/config/CorsConfig.java

@@ -8,7 +8,6 @@ import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
 import org.springframework.web.filter.CorsFilter;
 
 import java.util.Arrays;
-import java.util.Collections;
 
 /**
  * CORS资源共享配置
@@ -25,7 +24,7 @@ public class CorsConfig {
         CorsConfiguration corsConfiguration = new CorsConfiguration();
         //1.允许任何来源
         corsConfiguration.setAllowedOriginPatterns(Arrays.asList("http://172.16.1.159:8080","http://192.10.33.95:8080","http://localhost:8080",
-                "http://localhost","https://172.16.1.159","https://etc.xmzsh.com","http://localhost:3000","http://192.0.33.228*","http://192.0.33.229*","http://192.6.33.187*","http://27.154.61.205*"));
+                "http://localhost","https://172.16.1.159","https://etc.xmzsh.com","http://localhost:3000","http://192.0.33.228*","http://*qmrb.net*","http://192.6.33.187*","http://27.154.61.205*"));
         //2.允许任何请求头
         corsConfiguration.addAllowedHeader(CorsConfiguration.ALL);
         //3.允许任何方法