我必须在正在运行的生产服务器前面实现一个代理服务器来路由和保护生产服务器。在生产服务器上,多个node.js应用程序监听不同的端口。3002client100.example.com -> ProxyServer --> Application on LiveServer6 at port 3001
所有子域只能通过https访问
我正在学习如何使用sinon.js。我可以伪造正常的AJAX,但我需要请求一个图像,并且我没有得到xhr.response (它是未定义的)。如何使用sinon.js伪造图片的响应?arraybuffer';//this.response is undefinedxhr.send(null);
如何伪造此镜像请求