How to configure proxy for your app

You can configure your application to use a proxy server to connect to the Internet rather than directly.

Info

The following instructions for the proxy server are only for the Chromium rendering engine, not for PHP.

Place the following code to the UserMain HEScript script:

procedure OnStartMainWindow;
begin
// When the main window is going to be displayed (just before the homepage is shown). 
SetUIProp("crm", "ProxyServer", """122.133.144.155""");
SetUIProp("crm", "ProxyUsername", """user""");
SetUIProp("crm", "ProxyPassword", """pass""");
SetUIProp("crm", "ProxyPort", "3456");
SetUIProp("crm", "ProxyType", "3");             
SetUIProp("crm", "ProxyScheme", "0");
NavigateCommand(13); // Update preferences
end;     

Warning

The first and last three quotes character are mandatory for ProxyServer, ProxyUsername and ProxyPassword.

  • ProxyScheme: 0 (HTTP), 1 (SOCKS4) or 2 (SOCKS5)
  • ProxyType: 0 (direct, no proxy), 1 (auto-detect), 2 (system-defined), 3 (fixed servers), 4 (pac script).

For pac script, you should also specify script URL with ProxyScriptURL.