美文网首页
Set proxy authentication credent

Set proxy authentication credent

作者: MengchunCao | 来源:发表于2018-04-08 22:54 被阅读0次

Make sure add "<all_urls>''  and "webRequestBlocking" to permissions section in  manifest file.

chrome.webRequest.onAuthRequired.addListener( function(details, callbackFn) {     console.log("onAuthRequired!", details, callbackFn); callbackFn({ 

     authCredentials: {

            username: base64.decode('eGlldG9uZw'), 

            password: base64.decode('eGlldG9uZzEyMw==')} }); 

 },

 { urls: ["<all_urls>"] },

    ['asyncBlocking']

);

相关文章

网友评论

      本文标题:Set proxy authentication credent

      本文链接:https://www.haomeiwen.com/subject/qahvhftx.html