feat(security): 允许匿名搜索与打开协议页
This commit is contained in:
1 parent
22edf34ff1
commit
87e20c31a9
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/** 客户端搜索:按标题或简介模糊匹配已上线短剧。 */
|
||||
/** 客户端搜索:按标题或简介模糊匹配已上线短剧。不需要登录。 */
|
||||
@Tag(name = "客户端-搜索")
|
||||
@RestController
|
||||
@RequestMapping("/app")
|
||||
|
||||
+4
@@ -40,11 +40,15 @@ public class SecurityConfig {
|
||||
"/app/categories/**",
|
||||
"/app/banners/**",
|
||||
"/app/dramas/**",
|
||||
"/app/search",
|
||||
"/app/episodes/*/play",
|
||||
"/app/config/**",
|
||||
/* 启动配置与公告:客户端登录前就要拿(POST /app/creator/apply 等仍要登录) */
|
||||
"/app/config",
|
||||
"/app/notices",
|
||||
/* 服务条款与隐私协议:登录前就要能打开,按语言返回 HTML */
|
||||
"/privacy/**",
|
||||
"/terms/**",
|
||||
/* 埋点上报:游客浏览也要记录,匿名可访问 */
|
||||
"/app/events",
|
||||
/* 媒资:封面与视频用 <img>/<video> 直接访问,无法带请求头。
|
||||
|
||||
Reference in new issue
Block a user