使用filter后导致网站 部分正常请求 出现问题
待处理#769myaijarvis创建于 2023年12月27日

测试链接
https://www.toutiao.com/w/1786408438848579/
https://www.toutiao.com/article/7316882406509019698/
https://www.toutiao.com/video/7316848842199171594/

使用如下代码后

ajaxHooker.filter([
    // 下面两个都是评论请求
    {url: '/article/v4/tab_comments/',type: 'xhr'},
    {url: '/2/comment/v4/reply_list/',type: 'xhr'},
]);

ajaxHooker.hook(request => {
    console.log(request.url); 
})

可以正常评论,但无法对作品点赞、收藏

报错如下
image.png

No data
登录后评论
标签
关注
参与者