new IE7 cross-domain security issue

D

dd

I have a situation where my code is running in an iframe
that is in the same domain as the parent page, so I'm
allowed to access it. For example I can do this:
if(parent.location.href==self.location.href) without any
exceptions. I'm also allowed to read/write anything in
there without problems.

If, however, the parent page has executed the following
command:

document.domain = "thatdomain.com";

then if my iframe wants to reference it in the above
mentioned ways then I also need to execute that cmd.
Even if my URL is http://thatdomain.com/some/thing.html
I still need to execute the command.

That's been working fine, until IE7. Now I can't access the
parent page even if I execute the domain command. If the
parent page has NOT done this domain command I can
still access it without problem.

I'm doubting there's a solution to this but you never know :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top