-
Notifications
You must be signed in to change notification settings - Fork 5
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.
There are two ways to "tell" your Codename One application about your proxy servlet.
- In your Java source :
Display.getInstance().setProperty("javascript.proxy.url", "http://example.com/yourwebapp/cn1-gae-cors-proxy?_target=");
- 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
.