[dev-addons] Set a proxy setting

sujarwo djoko sujarwo.djoko0 at gmail.com
Tue Aug 13 02:58:07 UTC 2019


I need to set a proxy setting, when the addons installed. I follow
documentations here
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/proxy/settings.
But, its not worked.

Manifest

{
  "manifest_version": 2,
  "name": "Secure Proxy",
  "version": "1.0",

  "description": "Secure Proxy.",

  "permissions": [
    "proxy"
  ],

  "background": {
    "scripts" : ["js/background.js"]
  }}

background.js

let proxySettings = {
  proxyType: "manual",
  http: "118.97.151.130:9090",
  httpProxyAll: true};

browser.proxy.settings.set({value: proxySettings});
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/dev-addons/attachments/20190813/eaec0937/attachment.html>


More information about the Dev-addons mailing list