wood burning stoves 2.0*
The moose likes JSF and the fly likes Capture cross domain content in iFrame | JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Capture cross domain content in iFrame | JSF" Watch "Capture cross domain content in iFrame | JSF" New topic
Author

Capture cross domain content in iFrame | JSF

Mahmoud Khodier
Greenhorn

Joined: Feb 20, 2013
Posts: 1
I use iFrame in my application in which I open other applications from different domains. I want to capture content of these applications either as raw text data or as an image (then I will apply OCR on this image).


I use JSF Framework.

I searched for this issue, but I found that I can't get iFrame content if these contents are from different domains. (Security Issue)

Could you please help me regards this? Please advice.

Thanks in advance.

BR,
Mahmoud Khodier.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

Welcome to the JavaRanch, Mahmoud.

This is correct. It's a major security issue when one webserver can reach out through a client and muck around with another webserver. In fact, a lot of the trouble we've been having with the CodeRanch JForum software lately stems from our work on plugging loopholes in that restriction that can come from a compromised client program.

You should be able to copy/paste and drag/drop manually between the IFrames, I believe, but automated data transfer and control is haram.

JSF doesn't work all that well with frames in any event, whether original-style or IFrame.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Capture cross domain content in iFrame | JSF
 
Similar Threads
Detection among two domains/servers
How to avoid 2nd form submission in case the First one is submitted and vice versa?
Glassfish v2 and v3 on same machine
Problem with gif Image usage
Loosing session and request object while doing response.sendRedirect(url)