Ver Fonte

fix:cms放开查询

liujunchi há 3 anos atrás
pai
commit
3944b9807c

+ 4 - 1
cooleshow-cms/src/main/java/com/yonge/cooleshow/cms/config/ResourceServerConfig.java

@@ -27,7 +27,10 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
 		http.authorizeRequests()
 		.antMatchers("/task/**")
 		.hasIpAddress("0.0.0.0/0")
-				.antMatchers("/v2/api-docs", "/news/list", "/news/query", "/news/homeList", "/news/typeList")
+				.antMatchers("/v2/api-docs",
+					 "/news/page","/news/query/**","/news/app/home",
+					 "/helpCenterContent/list","/helpCenterContent/get/**",
+					"/music/theory/detail/**","/music/theory/app/page","/music/theory/page")
 				.permitAll()
 				// 任何人不登录都可以获取的资源
 				// .antMatchers("/ipController/**").hasIpAddress("127.0.0.1") //特定ip可以不登录获取资源