Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Capture cross domain content in iFrame | JSF

 
Mahmoud Khodier
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18002
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic