Chrome issue with same domain with resize sample

325 views
Skip to first unread message

EtienneT

unread,
Apr 26, 2012, 7:35:39 PM4/26/12
to easyxdm
easyXDM newbie here...

I am trying to integrate this sample into my code:
http://consumer.easyxdm.net/current/example/resize_iframe.html

In resize_intermediate.html, at this line:

var d = iframe.contentWindow.document;

I always get this error in Chrome:

Unsafe JavaScript attempt to access frame with URL
http://domain.test.com:85/folder/onlinestore.aspx from frame with URL
http://domain.test.com:85/folder/resize_intermediate.html?url=onlinestore.aspx&xdm_e=http%3A%2F%2Flocalhost%3A85&xdm_c=default8187&xdm_p=1

I changed the domain here, but basically this is the exact same domain
name, exact same port, same protocol.

Any idea why this would do that?

Thanks,

Øyvind Sean Kinsey

unread,
Apr 26, 2012, 11:25:34 PM4/26/12
to eas...@googlegroups.com
Are you at any point setting `document.domain`? If so, this has to be done in both documents.

Øyvind Sean Kinsey
San Francisco, CA

EtienneT

unread,
Apr 27, 2012, 8:47:56 AM4/27/12
to easyxdm
Thanks! That was exactly the problem!

On Apr 26, 11:25 pm, Øyvind Sean Kinsey <oyv...@kinsey.no> wrote:
> Are you at any point setting `document.domain`? If so, this has to be done
> in both documents.
>
> Øyvind Sean Kinsey
> San Francisco, CA
>
>
>
>
>
>
>
> On Thu, Apr 26, 2012 at 4:35 PM, EtienneT <etremb...@gmail.com> wrote:
> > easyXDM newbie here...
>
> > I am trying to integrate this sample into my code:
> >http://consumer.easyxdm.net/current/example/resize_iframe.html
>
> > In resize_intermediate.html, at this line:
>
> > var d = iframe.contentWindow.document;
>
> > I always get this error in Chrome:
>
> > Unsafe JavaScript attempt to access frame with URL
> >http://domain.test.com:85/folder/onlinestore.aspxfrom frame with URL
>
> >http://domain.test.com:85/folder/resize_intermediate.html?url=onlines...
Reply all
Reply to author
Forward
0 new messages