yaobo il y a 7 ans
Parent
commit
aa5c43eca1
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  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);
     }