如何拦截来自网页的每一个AJAX请求网页、AJAX

2023-09-10 17:17:15 作者:片片樱花滑落裙摆

我需要的方式来拦截来自网页maded所有Ajax请求。所以,我需要一些包装,以我的数据添加到所有用户的请求。

I need the way to intercept all ajax requests maded from page. So i need some wrapper to add my data to all users requests.

推荐答案

嗯......我做这项工作))) 这一主题的帮助,Extending在JavaScript 一个的ActiveXObject 我做了拦截所有Ajax请求不管是什么框架或浏览器做的用户使用。

Huh... i made this work))) with help of this topic Extending an ActiveXObject in javascript i made script that intercept all ajax requests no matter what framework or browser do user use.

您可以看一下在这里:脚本

You can look at it here: Script