Skip to content

解决cookie文本转码之后/token=([^;]+)/ 无法正确匹配到token 的问题#2

Open
3biubiu wants to merge 1 commit into
Cunninger:mainfrom
3biubiu:main
Open

解决cookie文本转码之后/token=([^;]+)/ 无法正确匹配到token 的问题#2
3biubiu wants to merge 1 commit into
Cunninger:mainfrom
3biubiu:main

Conversation

@3biubiu

@3biubiu 3biubiu commented Feb 11, 2025

Copy link
Copy Markdown

调用api 接口的情况下出现了 cookies文本中的符号被编码为四个转义序列,使用decodeURIComponent进行解码以便 正则表达式能够正确匹配

@Cunninger

Copy link
Copy Markdown
Owner

感谢你的PR,能给我提供错误示例吗,我刚刚使用源代码本地测试了一次,没有发现问题。

@3biubiu

3biubiu commented Feb 11, 2025 via email

Copy link
Copy Markdown
Author

@Cunninger

Copy link
Copy Markdown
Owner

问题截图给我看看

@3biubiu

3biubiu commented Feb 12, 2025

Copy link
Copy Markdown
Author

问题截图给我看看
image

如图所示,确保cookies 内容正确,提示missing token

@Cunninger

Copy link
Copy Markdown
Owner

谢谢你的反馈,问题已核实,API 调用还存在,待修复

@Cunninger

Cunninger commented Feb 13, 2025

Copy link
Copy Markdown
Owner

API 调用目前测试成功,你上述的问题,我今天没有复现成功,你测试一下,问题是否还存在,ApiFox网页端调试好像有问题。
我重新创建了一个worker 做的测试:
测试地址:https://nameless-scene-009f.aughumes8.workers.dev 建议配置自定义域名,可能访问会快些

  1. URL 调用

image
2. base64 调用

image
如果你的网址还存在问题,方便的话邮件私发我 xzhuzhu961@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants