Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to set proxy settings in a Safari Extension?

Tags:

As Apple introduce extension support in Safari 5, I want to make an extension that manage proxy settings directly in the browser (like AutoProxy for Firefox or Proxy Switchy for Chrome).

I skimmed the source code of Proxy Switchy. It is mainly written in Javascript/HTML, but uses an external binary bundle to do proxy switching. Is this scheme doable in Safari extension? If not, is there other way to manage proxy settings in the extension?

like image 583
iamamac Avatar asked Jun 09 '10 15:06

iamamac


People also ask

Why can't Safari connect to proxy?

The solution is simple - either fix the proxy server, or click the Proxies button in Safari Preferences -> Advanced and set the proxy server setting accordingly (which may be 'off', depending on your needs).

How do you add a proxy to Safari on Iphone?

From the Home Screen, select Settings, then Wi-Fi. Select the blue right arrow button on your network. Scroll down to the bottom of the page and turn on the HTTP Proxy.

How do I bypass Safari proxy settings?

Select Safari from the top menu and click Preferences... Select the Advanced icon from the top list and click Change Settings... This will open the Proxies section of the Network Preferences. Nothing should be checked in here; if it is, remove the check mark and click OK.


1 Answers

I am having exactly same question although it is almost 2016 already and I am using Safari 9.0.2. It seems that Apple does not provide such an API for defining browser-specific proxy in extensions as Google does for Chrome. So I guess one would have to deal with system-wide proxy settings, that is to find solutions for setting up app-specific proxy.

like image 173
Zane Avatar answered Nov 11 '22 00:11

Zane