程序员阿江(Relakkes)
380b426000
fix(dy): 补上 ArgusSecurityPlugin 要求的 x-tt-argus 请求头
抖音在边缘网关新挂了 ArgusSecurityPlugin,对 aweme/detail、aweme/post 这批接口做
业务前置校验:缺少 x-tt-argus 时直接 403,响应体为
"Blocked by ArgusSecurityPlugin Uifid Not Found";只补 uifid 参数但仍没有这个头
则是 "... Signature Not Found"——后者很容易被误判成 a_bogus / verifyFp 的问题。
网关当前不校验该头取值,传固定字符串即可(实测 "1" 就够)。
参考 https://github.com/Johnserf-Seed/f2/issues/443
注意这是权宜之计:网关哪天升级到真校验该值,会重新出现 Signature Not Found,
届时需要改为页面内注入 JS 让抖音自带 SDK 补齐 Argus 头。
验证:真实 cookie 下 get_video_by_id 恢复可用。
- client.py: 默认请求头补 x-tt-argus,cookie 有 UIFID 时带 uifid 头
(两种都没有则不发,避免被当成「有但为空」)
- 新增 tests/test_douyin_argus_header.py(不发网络请求)
2026-09-19 13:25:59 +08:00
..
2025-11-28 04:44:12 +01:00
2025-12-26 23:27:19 +08:00
2026-09-17 22:54:22 +08:00
2026-09-17 22:54:22 +08:00
2026-08-11 18:10:16 +08:00
2026-09-18 15:48:06 +08:00
2026-06-18 17:22:38 +08:00
2026-09-17 22:54:22 +08:00
2026-04-30 18:20:46 +08:00
2026-09-19 13:25:59 +08:00
2026-09-18 17:00:11 +08:00
2026-07-01 23:03:43 +08:00
2025-11-28 15:12:36 +08:00
2026-07-01 13:09:55 +08:00
2026-09-18 17:18:01 +08:00
2026-09-18 17:23:20 +08:00
2026-09-17 22:54:22 +08:00
2026-09-17 22:54:22 +08:00
2026-09-17 22:54:22 +08:00
2026-09-18 16:10:18 +08:00
2026-09-17 22:54:22 +08:00
2026-07-01 13:09:55 +08:00
2026-05-29 21:27:52 +08:00
2026-07-01 23:03:43 +08:00
2026-04-30 18:20:46 +08:00
2026-07-01 23:03:43 +08:00
2026-07-01 23:03:43 +08:00
2026-08-11 18:10:16 +08:00
2026-08-11 17:52:54 +08:00