|
@@ -52,19 +52,19 @@ public class Config extends WebMvcConfigurerAdapter{
|
|
|
|
|
|
@Override
|
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
|
-// registry.addInterceptor(authInterceptor())
|
|
|
-// .addPathPatterns("/audio/search")
|
|
|
-// .excludePathPatterns("/device/**");
|
|
|
+ registry.addInterceptor(authInterceptor())
|
|
|
+ .addPathPatterns("/audio/search")
|
|
|
+ .excludePathPatterns("/device/**");
|
|
|
|
|
|
-// registry.addInterceptor(adminInterceptor())
|
|
|
-// .addPathPatterns("/**")
|
|
|
-// .excludePathPatterns("/device/**", "/admin/login", "/audio/search");
|
|
|
-
|
|
|
- registry.addInterceptor(allowOriginIntercepter())
|
|
|
- .addPathPatterns("/**");
|
|
|
+ registry.addInterceptor(adminInterceptor())
|
|
|
+ .addPathPatterns("/**")
|
|
|
+ .excludePathPatterns("/device/**", "/admin/login", "/audio/search");
|
|
|
|
|
|
registry.addInterceptor(ignoreOptionsInterceptor())
|
|
|
.addPathPatterns("/**");
|
|
|
+
|
|
|
+// registry.addInterceptor(allowOriginIntercepter())
|
|
|
+// .addPathPatterns("/**");
|
|
|
}
|
|
|
//
|
|
|
// /**
|