Ok I confirmed it's not SOP violation in my design.  The script runs
fine in web mode.  It's only considered a violation in host/
development mode.

I am not sure how to configure the DevMode to get around the
violation.  Any thoughts would be appreciated.

On Jun 22, 10:07 am, randasin <r4nd7...@gmail.com> wrote:
> It shouldn't violated SOP since PageA really has nothing to do with
> PageB.
>
> PageA just displays PageB in an iframe.  PageB scipts should do their
> work in the context of host page B.  and I have no intention to
> violate SOP.  But I don't know GWT bootstrap well enough to understand
> what hosted.html gwtOnLoad function is doing that causes the
> violation?  Feels like a bug.
>
> Did I misunderstand SOP?
>
> On Jun 22, 9:52 am, Jeff <jfha...@gmail.com> wrote:
>
> > Hi,
>
> > I don't want to say stupidities, but isn't it a violation of the SOP
> > (Same Origin Policy)?
> > If so, i recommend you to have a look 
> > herehttp://en.wikipedia.org/wiki/Same_origin_policy
> > and herehttp://code.google.com/p/google-web-toolkit-doc-1-5/wiki/FAQ_SOP
>
> > Regards,
> > Jeff
>
> > On 22 juin, 15:41, randasin <r4nd7...@gmail.com> wrote:
>
> > > I have two pages, the first page contains an iFrame that loads the
> > > second page.  The two pages are on different hosts.  The GWT
> > > application runs in the second page.  To be more precise,
>
> > > let the first page = PageA, and the second page = PageB
>
> > > - PageA is on Domain1. It has iFrame src points to PageB
> > > - PageB is on Domain2.  It has my GWT application.
>
> > > When I go to PageA, FireFox gives me this error
>
> > > Error: Permission denied for <Domain2> to get property Location.href
> > > from <Domain1>.
> > > Source File: <My gwt app path>/hosted.html?<My GWT application name>
> > > Line: 227
>
> > > I tried adding xs linker (<add-linker name="xs"/>) to my module xml;
> > > it doesn't seem to work.  I am not sure if I am using it correctly.
> > > Does anyone know of a solution to this issue?  Any thoughts would be
> > > appreciated.
>
> > > Also I would appreciate if someone can refer me the location of the
> > > official GWT documentation on cross site linker.  Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to