yaobo 7 年之前
父节点
当前提交
aa5c43eca1
共有 1 个文件被更改,包括 3 次插入2 次删除
  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);
     }