code: public void processOpen(String method, URL url, String origin, boolean async, long connectTimeout) throws Exception {
          LOG.entering(CLASS_NAME, "processOpen", new Object[] {method, url, origin, async});
  
          this.async = async;
          connection = (HttpURLConnection)url.openConnection();
          connection.setRequestMethod(method);
          connection.setInstanceFollowRedirects(false);
          connection.setConnectTimeout((int) connectTimeout);
  
          if (!origin.equalsIgnoreCase("null") && !origin.startsWith("privileged")) {
              URL originUrl = new URL(origin);
              origin = originUrl.getProtocol() + "://" + originUrl.getAuthority();
          }
  
          // connection.addRequestProperty("X-Origin", origin);
          connection.addRequestProperty("Origin", origin);
          setReadyState(State.OPENED);
  
          listener.opened(new OpenEvent());
      }
docs: /* (non-Javadoc)
  @see org.kaazing.gateway.client.transport.http.HttpRequestDelegate#open(java.lang.String, java.net.URL, java.lang.String, boolean)