Postman作为常用的api模拟请求测试工具,要实现Postman模拟Ajax请求也很容易实现。
所以,这个Postman中不少缺少XMLHttpRequest对象。实现如下:
X-Requested-With:XMLHttpRequest
Content-Type:application/json
在Postman的header中完善上面两步即可。
Postman模拟ajax请求
原文:https://blog.51cto.com/phpme/2539235