Skip to content

Deploying on App Engine

Steve Hannah edited this page Apr 30, 2015 · 1 revision

The CORSProxy class is not compatible with Google App Engine. For this reason, this project includes an alternate proxy servlet, GAEProxyServlet which can be deployed on AppEngine.

Configuring Your Codename One Application to use GAEProxyServlet

There are two ways to "tell" your Codename One application about your proxy servlet.

  1. In your Java source :
Display.getInstance().setProperty("javascript.proxy.url", "http://example.com/yourwebapp/cn1-gae-cors-proxy?_target=");
  1. In your index.html file.
<script>
  window.cn1CORSProxyURL='http://example.com/yourwebapp/cn1-gae-cors-proxy?_target=';
</script>

NOTE: These settings are identical to the settings for the CORSProxy servlet, except the url is cn1-gae-cors-proxy instead of cn1-cors-proxy.

Clone this wiki locally