chrome.webRequest.onBeforeRequest.addListener(async info => {
if(/\/b\/ss\//.test(info.url) && info.method === "POST"){
sendToTab({
info: info,
eventTriggered:"onBeforeRequest",
_satelliteInfo:JSON.parse(await getSatelliteInfo())
});
}
}, filter);
I receive it in my content script and console.log it.
The info object doesn't seem to contain the payload.
How do I access the POST payload? I actually don't care which listener to use. If it's available in a different listener, I don't mind switching it. I'm still going to have to sync it with my onHeadersReceived.