I have the following manifest file:
{
    "manifest_version": 2,
    "permissions": [
        "http://*/*",
        "https://*/*"
    ],
    "background": {
        "scripts": [
            "./src/background.js"
        ]
    }
}
In my background script, I have the following code:
console.log('I am here');
chrome.extension.onRequest.addListener((request, sender, response) => {
    console.log(request, sender, response);
});
When I load a page, I would expect the console.log inside of the listener to fire, but nothing happens. Though I do get the output I am here.
What I am trying to do is capture a response from a URL which contains json. I then want to get specific data from the json and send it to my server.
Maybe using chrome.extension.onRequest isn't the best way to do this. What should I be doing?
 
    