Answer the question
In order to leave comments, you need to log in
Where to get query params when working with chrome.webRequest.onBeforeRequest?
Hello everyone!)
I'm working on an extension for Google Chrome. Hung a listener on onBeforeRequest :
chrome.webRequest.onBeforeRequest.addListener(
function(details) {
console.log(details);
},
{urls: ["<all_urls>"]},
["requestBody"]
)
details.requestBody
I would get query parameters (those after ?). However, as it turned out, the data (form data) of post-requests is put there. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question