songshuai 5 年之前
父节点
当前提交
22507d4b6b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/cn/efunbox/audio/config/Config.java

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

@@ -57,8 +57,8 @@ public class Config extends WebMvcConfigurerAdapter{
         registry.addInterceptor(ignoreOptionsInterceptor())
                 .addPathPatterns("/**");
 
-//        registry.addInterceptor(allowOriginIntercepter())
-//                .addPathPatterns("/**");
+        registry.addInterceptor(allowOriginIntercepter())
+                .addPathPatterns("/**");
     }
 
 //    /**