Javascript - Chrome extension - Webrequest - Responsebody -


i want write extension chrome watch xhr calls , found have use webrequest this.

i want response-body of request never can find how this. possible?

// chrome.browseraction.onclicked.addlistener(function (tab) {     var callback = function(details) {         var url = details.url;          console.log(details);     };      var filter = {         urls: ["*://safan.dev/*"]     };      var ops = ["requestbody"];      chrome.webrequest.onbeforerequest.addlistener(         callback, filter, ops     ); // }); 

and manifest:

{   "manifest_version": 2,    "name": "forge of empires",   "description": "foe",   "version": "1.0",    "browser_action": {     "default_icon": "icon.png"   },   "permissions": [     "webrequest",     "<all_urls>"   ],   "background": {     "scripts": ["logic.js"]   } } 

i want response-body of request never can find how this. possible?

not @ moment. there long-standing feature request.


note can using devtools.network api (requires dev tools open) or debugger api (requires dev tools closed, low-level).


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -