Invalid access values ​​inside my iFrame, this gives me permission to reject

I can’t get the access values ​​in my iFrame, this gives me permission to refuse. I have access on both pages (parent and child).

I added the following javascript line to both pages:

document.domain = "sub.domain.com";

but firebug gives me: Invalid value of document.domain

and when I try to access the element inside the iFrame, it asks: Permission denied for http://sub1.domain1.com to call the Location.toString method on http://sub2.domain2.com

thank

+5
source share
3 answers

document.domain , (https://developer.mozilla.org/en/DOM/document.domain). , 1.sub.domain.com 2.sub.domain.com, document.domain sub.domain.com, .

+7

. http://en.wikipedia.org/wiki/Cross-site_scripting

:

http://sub1.domain1.com
http://sub2.domain2.com

:

http://sub1.domain1.com
http://sub2.domain1.com
0

All Articles