Using APE from different domain

57 views
Skip to first unread message

Bodger

unread,
Feb 7, 2012, 8:05:03 AM2/7/12
to APE Project
Hi,

Is it possible to use an APE server which is running on a different
domain to the one the web server is running on?

If I try it, I get permission problems from the Javascript when trying
to access parts of the iframe.

I'm trying to deploy a Django app on heroku and for that app to
connect to an APE server running on a different domain.

Any ideas?

Thanks,
Simon

Sergei Koba

unread,
Feb 7, 2012, 8:16:05 AM2/7/12
to ape-p...@googlegroups.com

http://www.ape-project.org/wiki/index.php/Tutorial:Use_different_transport_method_%28JSONP,_XHRStreaming%29

JSONP

This transport method allows APE to work cross domain. For example your APE Server runs on http://ape.yourdomain.com but you also want it to be accessible on any other domain. This can be done using JSONP. To activate JSONP edit your APE JSF config file and add :

APE.Config.transport = 2;  // 2 is JSONP
Reply all
Reply to author
Forward
0 new messages