On 5/10/07, mélanie langlois <[EMAIL PROTECTED]> wrote:

In one of my webpage, one frame is loading an external url, using iframe
tag. The loading process works fine, but I need to access component in this
frame, to launch some actions on them. When I tryed that I get a Permission
denied error, because the iframe is loaded from an external domain tahn my
application.

I tried to used apache server configured as a reverse proxy, to load the
iframe in a way that tomcat thinks it's loaded from local domain.

Pointless. The iframe is loaded *by the client browser* which doesn't
care anything about your proxy setup. The *client* knows the URLs
are from different domains and enforces the proper restrictions on
cross-site scripting.

If you want the content of that external URL to be part of the context
of your page, you need to incorporate it on the server.

The easiest way would be to use the JSTL <c:import /> tag and either
embed (and post-process) the content or just create a local copy.

HTH,
--
Hassan Schroeder ------------------------ [EMAIL PROTECTED]

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to