yaobo 7 gadi atpakaļ
vecāks
revīzija
aa5c43eca1
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      src/main/java/cn/efunbox/audio/config/Config.java

+ 3 - 2
src/main/java/cn/efunbox/audio/config/Config.java

@@ -58,8 +58,9 @@ public class Config extends WebMvcConfigurerAdapter{
         registry.addMapping("/**")
                 .allowedOrigins("*")
                 .allowCredentials(true)
-                .allowedMethods("GET", "POST", "DELETE", "PUT", "OPTIONS")
-                .allowedHeaders("*")
+//                .allowedMethods("GET", "POST", "DELETE", "PUT", "OPTIONS")
+                .allowedMethods("*")
+//                .allowedHeaders("*")
                 .maxAge(3600);
     }