Set proxy using google chrome extention with password and login

390 views
Skip to first unread message

pe49...@gmail.com

unread,
Feb 13, 2018, 10:52:46 AM2/13/18
to Chromium-Extensions-Announce

I need to set proxy. I use it, but now I need to set proxy with login and password. How can I do it?

manifest.json

  "permissions": [
            "tabs",
            "http://*/*",
            "https://*/*",
            "notifications",
            "contextMenus",
            "history",
            "background",
            "proxy"
        ],

and background.js

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

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

});


PhistucK

unread,
Feb 13, 2018, 12:01:35 PM2/13/18
to pe49...@gmail.com, Chromium-Extensions-Announce
Have you tried "username:password@host" instead of only "host"?


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/bfad7983-ca36-47e7-84c6-2d173379522a%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

PhistucK

unread,
Feb 13, 2018, 12:08:51 PM2/13/18
to pe49...@gmail.com, Chromium-Extensions-Announce
Just guessing - have you tried specifying "username:pass...@w.com" instead of only "w.com" at the host?


PhistucK

On Tue, Feb 13, 2018 at 5:52 PM, <pe49...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsubscribe...@chromium.org.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages