mozilla-extensions / secure-proxy

Firefox Private Network Web Extension
Mozilla Public License 2.0
140 stars 33 forks source link

Can this addon work with chrome? #766

Open rockxsj opened 4 years ago

rockxsj commented 4 years ago

Or how to transplant to google chrome?

bakulf commented 4 years ago

The Proxy API is not implemented in chrome. See: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/proxy The first step would be to implement this API in chromium.

rockxsj commented 4 years ago

But chrome have another proxy API, maybe can implement the same functionality?

bakulf commented 4 years ago

But chrome have another proxy API, maybe can implement the same functionality?

The proxy API in chrome is not enough because it doesn't allow the extension to set the Proxy-Authenticate header, but, in theory, you can add that header to any web-request using "onSendHeaders". I'm happy to review a PR, if you have time to write it!