让前端写个全局的 fetch 和 xhr 拦截替换,像这样
```javascript
const original_fetch = window.fetch
window.fetch = (request, options) => {
if (typeof request === "string") {
request = "
https://bing.com"
}else if (request instanceof Request) {
request.url = "
https://bing.com"
}
return original_fetch(request, options)
}
const original_xhr_open = XMLHttpRequest.prototype.open
XMLHttpRequest.prototype.open = function(method, url, async, user, password) {
url = "
https://bing.com"
return original_xhr_open.apply(this, arguments)
}
fetch("
https://google.com").finally()
const xhr = new XMLHttpRequest()
xhr.open("GET", "
https://google.com")
xhr.send()
```