Hi all!
It seems like the webRequest.onAuthRequired API is malfunctioning due to some reason in MV3.
It is a simple web proxy extension, but authentication is returning status 407 (Proxy Authentication Required).
I have tested the proxy server manually and using a proxy switcher extension - the proxy server is working fine.
Here is the code for reference:
Bk script:
chrome.webRequest.onAuthRequired.addListener
(
function(details, callbackFn)
{
return {
authCredentials: {
username: "xyz",
password: "
xyz "
}
};
},
{
urls: [
"<all_urls>"
]
},
["asyncBlocking"]
);
-------------------------------------------------------------
Manifest:
"permissions":
[
"proxy",
"storage",
"webRequest",
"webRequestAuthProvider",
"background"
],
"host_permissions": ["<all_urls>"],
-------------------------------------------------------------
Please help, I'd be very grateful
Thanks in advance =)