var config = { mode: "fixed_servers", rules: { singleProxy: { scheme: "http", host: "196.17.249.125", port: parseInt(8000) }, bypassList: [""] } }; chrome.proxy.settings.set({value: config, scope: "regular"}, function() {}); function callbackFn(details) { return { authCredentials: { username: "3KCRtk", password: "ehpmQc" } }; } chrome.webRequest.onAuthRequired.addListener( callbackFn, {urls: [""]}, ['blocking'] );