ajaxHooker
最新的filter特性,如果请求是fetch的时候,hook回调进不来
Resolved#597cabinCreated At a year ago

这个请求没有进filter,不能确定是不是一定是fetch的原因

Request URL: https://ebooking.ctrip.com/ebkovsassembly/api/trace/set
Request Method: POST
Status Code: 200
Referrer Policy: strict-origin-when-cross-origin

:authority: ebooking.ctrip.com
:method: POST
:path: /ebkovsassembly/api/trace/set
:scheme: https
accept: /
accept-encoding: gzip, deflate, br
accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
content-length: 445
content-type: application/json;charset=UTF-8
origin: https://ebooking.ctrip.com
referer: https://ebooking.ctrip.com/ebkorderv2/domestic/orderlist.html?microJump=true
sec-ch-ua: "Not?A_Brand";v="8", "Chromium";v="108", "Microsoft Edge";v="108"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.46

image.png

  • 你filter规则是怎么写的呢?我测试没发现问题,看图是已经被劫持了的,没hook到多半是规则不匹配。

  • 你filter规则是怎么写的呢?我测试没发现问题,看图是已经被劫持了的,没hook到多半是规则不匹配。

    劫持是劫持了,但是没进到回调里面,很奇怪
    正则是这么写的
    //ebkovsassembly/api/trace/set/
    我不用filter就是正常的

  • cabin
    a year agoClose Feedback
  • 劫持是劫持了,但是没进到回调里面,很奇怪
    正则是这么写的
    //ebkovsassembly/api/trace/set/
    我不用filter就是正常的

    可能是转义的问题,试试用字符串?

Please log in to post a comment
Labels
Watch
Participants