fix http auth not working
This commit is contained in:
13
ext/bg.js
13
ext/bg.js
@@ -726,6 +726,19 @@ browser.webRequest.onErrorOccurred.addListener(
|
|||||||
browser.proxy.onRequest.addListener(function(request){
|
browser.proxy.onRequest.addListener(function(request){
|
||||||
|
|
||||||
const proxy_config = proxy_map[request.cookieStoreId];
|
const proxy_config = proxy_map[request.cookieStoreId];
|
||||||
|
|
||||||
|
if(
|
||||||
|
proxy_config.type == "http" ||
|
||||||
|
proxy_config.type == "https"
|
||||||
|
){
|
||||||
|
|
||||||
|
return {
|
||||||
|
type: proxy_config.type,
|
||||||
|
host: proxy_config.host,
|
||||||
|
port: proxy_config.port
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
if(proxy_config){
|
if(proxy_config){
|
||||||
|
|
||||||
return proxy_config;
|
return proxy_config;
|
||||||
|
|||||||
Reference in New Issue
Block a user