如何在Chrome扩展代理上启用https

时间:2019-08-05 21:18:11

标签: javascript google-chrome-extension proxy

  chrome.windows.onCreated.addListener(function() {

var config = {
  mode: "fixed_servers",
  rules: {
    singleProxy: {
      scheme: "https",
      host: "108.61.186.207",
      port: 8080        
    },
    bypassList: ["foobar.com"]
  }
};
chrome.proxy.settings.set(
    {value: config, scope: 'regular'},
    function() {});

});

此javascript可在http(给定服务器的IP地址实际可用)上运行,尽管在https上不可用。我想知道如何才能使其在https而不是http上工作。

此外,如何通过javascript更改代理位置和端口/旁路列表?

0 个答案:

没有答案