1

my background.js

const networkFilters = {
    urls: ["https://www.google.com/search*"],
};
chrome.webRequest.onBeforeRequest.addListener((details) => {
        console.log(details.url);
        console.log('body', details.requestBody);
    },
    networkFilters,
    ['requestBody']
);

However the body is always empty.

I got this answer : Chrome extension to read HTTP response

But it looks like it is 4 years old.

yarek
  • 11,278
  • 30
  • 120
  • 219
  • That answer still applies, nothing's changed since. See also [Chrome webrequest doesn't see POST data in requestBody](https://stackoverflow.com/a/33107811). – wOxxOm Aug 28 '22 at 06:24

0 Answers0