-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding an API to configure proxy [$85] #916
Comments
Well, I wonder it could develop a method to support PAC file. |
like it too...... |
Right, can at least nw use the common HTTP_PROXY, http_proxy, HTTPS_PROXY, and https_proxy environment variables when it can't find any system settings? The PAC and system support in this closed issue is wonderful: But I've found some linux variants that don't supply the system proxy settings in a way Chrome or nw can understand. In those cases, either using the environment variables or a command line option to set the proxy would be helpful. Of course, the proxy given should be returned by the new API in the above issue |
Actually, it is quite annoying to work behind proxy using NW-application, because users are asked for the credentials twice - first for NW, second for Node |
I think there should be implemented some common way - i.e. environment variable HTTP_PROXY which is accessible from the NW and Node, or, another option, some API |
Bump? The project I'm working on at the moment needs me to find a portable web browser of some sort that runs things through a locally hosted proxy. |
uppfinnarn: you can't unless the System config is set to your local hosted server. I implemented kind of http client to make nodewebkit working with my own proxy with authentication. You can use chromium portable if you don't need any node.js modules. It has an extensions that allows you configure the proxy. |
Looking at that now, thanks. Not as elegant as I could make my node-webkit solution (where I could run the proxy within the same process), but it works. |
Nevermind, Windows only, back to looking for alternatives until (if) this gets addressed... |
Need it too ... |
+1 |
+1 as well |
An API method would be cool but supporting the --proxy-server chromium arg is a first step and is probably easy to implement. |
+1 |
I support felicienfrancois proposal to support the --proxy-server arg. |
+1 would be very useful |
+1 like it too...... |
+1 |
++ |
+1 |
This feature is quite important for Chinese 👍 |
+1 |
proxy_service.cc:
I think this is the code to check the system proxy. I will try to 'hard coding' the proxy setting before this issues be fixed. |
Look, there are lots of cases - i.e. when app opens external page that makes ajax requests - credentials are required When the password expires or user switches to different network, he must re-enter the credentials . Such cases are impossible to implement |
@rogerwang Thank you for your work! |
@ayapi yeah, would like to support it. Re-open this issue for this. |
I'd like to add that it seems Tested with nw 0.11.2 on CentOS 7 (with GNOME desktop) and Squid proxy. |
@tommoor Have you find any solution to autologin in proxy configuration ? My app is meant to run alone without any interaction so I must find a way to do that.. |
After gui.App.setProxyConfig Devtools show EmptyWith 12.0 & 12.2 for win7 32bit . After set proxy by setProxyConfig. and proxy works good. My proxy string pass to setProxyConfig is : Both cause the same result. Remote debugging via local socket? |
+1 I have the same problem as @bestplay :( |
This can be done by CLI argument in Electron (Previously named Atom Shell) via a commit that was made a while ago right? Should it not now be easy to add to nw.js? |
@ayapi the support for auto detect proxy and PAC url will be added in the next 0.12.4 release. Thanks for your patience. |
Thank you very much! |
I know a lot of people would love to use nwjs for web automation and so being able to rotate proxies with logins and no user interaction required is essential. There are other use-cases as well. |
Please merge commit by rogerwang c45f686 |
And implement this feature in nw_app_api.cc. (cherry picked from commit c45f686)
(cherry picked from commit c45f686)
Add test cases for pac url.
Add test cases for pac url.
Add test cases for pac url.
Add test cases for pac url. (cherry picked from commit 206df0d)
Add test cases for pac url. (cherry picked from commit 206df0d)
Add test cases for pac url. (cherry picked from commit 206df0d)
Add test cases for pac url. (cherry picked from commit 206df0d)
In 0.6.3 an API to get proxy for url has been added. Can we have an API to set proxy?
Chrome has a proxy API, which doesn't affect system settings. I'm wondering if nw could have the same feature.
http://developer.chrome.com/extensions/proxy.html
Did you help close this issue? Go claim the $85 bounty on Bountysource.
The text was updated successfully, but these errors were encountered: