By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,747 Members | 1,759 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,747 IT Pros & Developers. It's quick & easy.

Accessing data present in http from https frame

P: n/a
R
Hello,

I have a frame in which there are 2 IFrames., both being loaded from
the same domain. One IFrame is loaded from http://test1.xyz.com and the
other IFrame is loaded from https://test1.xyz.com/test

I am getting an error while accessing data in the HTTP IFRAME from the
HTTPS IFRAME.

Is it possible at all to access the data in the other IFrame, when the
protocol is different?

Please let me know if you have a solution. Appreciate it.

Thanks
Ravi

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a


R wrote:

I have a frame in which there are 2 IFrames., both being loaded from
the same domain. One IFrame is loaded from http://test1.xyz.com and the
other IFrame is loaded from https://test1.xyz.com/test

I am getting an error while accessing data in the HTTP IFRAME from the
HTTPS IFRAME.

Is it possible at all to access the data in the other IFrame, when the
protocol is different?


The usual same origin policy doesn't allow that:
<http://www.mozilla.org/projects/security/components/same-origin.html>
That is a document about Mozilla and other browsers may differ, IE/Win
for instance usually allows access between http://example.com/ and
http://example.com:80/ but I don't think any browser will allow access
from http to https pages as that way script could easily get a sensitive
data.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.