Login  Register

Re: Re: two way js communications between parent and iframe content

Posted by Tambet Matiisen on Jan 11, 2011; 7:34am
URL: https://discuss.orbeon.com/two-way-js-communications-between-parent-and-iframe-content-tp3192702p3208573.html

On 11.01.2011 0:33, DL wrote:
I've just found that this exception arises from calling the orbeon xform from
a remote (Apache) server ..

this seems to be a cross-domain security problem with javascript

if I run the test form on quercus / Tomcat (having set quercus.xml and
orbeon.xml context files in Tomcat 6.0\conf\Catalina\localhost\) I can now
embed the xform in a parent iframe without seeing the exception error.

If you have a control over the remote Apache server, you can overcome the cross-domain security problem by setting up proxy for Orbeon. You do this in Apache configuration with ProxyPass and ProxyPassReverse directives:

ProxyPass /orbeon/ http://your.tomcat.host/orbeon/
ProxyPassReverse /orbeon/ http://your.tomcat.host/orbeon/

See also http://httpd.apache.org/docs/2.2/mod/mod_proxy.html.

  Tambet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws